Skip to content

Commit

Permalink
delay test registration to ensure all test classes have been loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
RogueLogix committed Feb 27, 2024
1 parent c2155ed commit 105dba0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public class QuartzTestRegistry {
public static void onModLoad() {
NeoForge.EVENT_BUS.addListener(QuartzTestRegistry::registerCommands);
Quartz.EVENT_BUS.addListener(QuartzTestRegistry::onTestingStatusEvent);
registerTests();
}

public static void registerCommands(RegisterClientCommandsEvent event) {
registerTests();
event.getDispatcher().register(Commands.literal("quartz").then(Commands.literal("recreate_tests").executes(ctx -> {
registerTests();
sendChatMessage("Tests recreated " + testRegistry.size());
Expand Down

0 comments on commit 105dba0

Please sign in to comment.