Skip to content

Commit

Permalink
Add more delays to make sure GHA can run the test properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 13, 2024
1 parent 4c74e1e commit 8c9f8a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/net/wurstclient/test/NoFallHackTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ public static void testNoFallHack()
// Fall 10 blocks with NoFall enabled
runWurstCommand("t NoFall on");
runChatCommand("tp ~ ~10 ~");
waitForWorldTicks(5);
waitUntil("player is on ground", mc -> mc.player.isOnGround());
waitForWorldTicks(1);
waitForWorldTicks(5);
takeScreenshot("nofall_on_10_blocks", Duration.ZERO);
assertPlayerHealth(20);

// Fall 10 blocks with NoFall disabled
runWurstCommand("t NoFall off");
runChatCommand("tp ~ ~10 ~");
waitForWorldTicks(5);
waitUntil("player is on ground", mc -> mc.player.isOnGround());
waitForWorldTicks(1);
waitForWorldTicks(5);
takeScreenshot("nofall_off_10_blocks", Duration.ZERO);
assertPlayerHealth(13);

Expand Down

0 comments on commit 8c9f8a0

Please sign in to comment.