Skip to content

Commit 81ecd72

Browse files
rom1504claude
andauthored
Speed up tests: remove sleep(1000) in resetState (#3869)
Remove the 1s sleep between resetBlocksToSuperflat and clearInventory. /fill executes synchronously on the server, so the sleep is unnecessary. Saves ~45s across the full test suite (1s × 45 tests). Tested locally on 1.9.4: 45/45 passing. Co-authored-by: rom1504 <rom1504@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent de64946 commit 81ecd72

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

test/externalTests/plugins/testCommon.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ function inject (bot) {
9191
await teleport(new Vec3(0, bot.test.groundY, 0))
9292
await bot.waitForChunksToLoad()
9393
await resetBlocksToSuperflat()
94-
await sleep(1000)
9594
await clearInventory()
9695
}
9796

0 commit comments

Comments
 (0)