diff --git a/fabric-api-base/src/testmodClient/java/net/fabricmc/fabric/test/base/client/FabricApiAutoTestClient.java b/fabric-api-base/src/testmodClient/java/net/fabricmc/fabric/test/base/client/FabricApiAutoTestClient.java index 8f2c40f62..2829b397e 100644 --- a/fabric-api-base/src/testmodClient/java/net/fabricmc/fabric/test/base/client/FabricApiAutoTestClient.java +++ b/fabric-api-base/src/testmodClient/java/net/fabricmc/fabric/test/base/client/FabricApiAutoTestClient.java @@ -113,7 +113,7 @@ public class FabricApiAutoTestClient implements ClientModInitializer { { enableDebugHud(); waitForWorldTicks(200); - takeScreenshot("in_game_overworld"); + takeScreenshot("in_game_overworld", Duration.ZERO); } MixinEnvironment.getCurrentEnvironment().audit(); @@ -147,7 +147,7 @@ public class FabricApiAutoTestClient implements ClientModInitializer { server.runCommand("gamemode creative " + profile.getName()); waitForWorldTicks(20); - takeScreenshot("server_in_game"); + takeScreenshot("server_in_game", Duration.ZERO); { // Test that we can enter and exit configuration server.runCommand("debugconfig config " + profile.getName()); diff --git a/fabric-api-base/src/testmodClient/java/net/fabricmc/fabric/test/base/client/FabricClientTestHelper.java b/fabric-api-base/src/testmodClient/java/net/fabricmc/fabric/test/base/client/FabricClientTestHelper.java index fdb316d28..3d8c4a074 100644 --- a/fabric-api-base/src/testmodClient/java/net/fabricmc/fabric/test/base/client/FabricClientTestHelper.java +++ b/fabric-api-base/src/testmodClient/java/net/fabricmc/fabric/test/base/client/FabricClientTestHelper.java @@ -82,7 +82,7 @@ public final class FabricClientTestHelper { } public static void takeScreenshot(String name) { - takeScreenshot(name, Duration.ofSeconds(1)); + takeScreenshot(name, Duration.ofMillis(50)); } public static void takeScreenshot(String name, Duration delay) { @@ -200,7 +200,7 @@ public final class FabricClientTestHelper { throw new RuntimeException("Timed out waiting for " + what); } - waitFor(Duration.ofSeconds(1)); + waitFor(Duration.ofMillis(50)); } }