Skip to content

Remove unnecessary sleep(1000) in test resetState#3869

Merged
rom1504 merged 1 commit into
masterfrom
remove-reset-sleep
Mar 30, 2026
Merged

Remove unnecessary sleep(1000) in test resetState#3869
rom1504 merged 1 commit into
masterfrom
remove-reset-sleep

Conversation

@rom1504
Copy link
Copy Markdown
Member

@rom1504 rom1504 commented Mar 30, 2026

Summary

  • Remove the 1s sleep between resetBlocksToSuperflat() and clearInventory() in resetState
  • /fill executes synchronously on the server, so the sleep is not needed
  • Saves ~45s across the full test suite (1s × 45 tests)
  • Tested locally on 1.9.4: 45/45 passing

🤖 Generated with Claude Code

@rom1504 rom1504 force-pushed the remove-reset-sleep branch from 1cfda3d to cbef2b2 Compare March 30, 2026 09:12
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: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rom1504 rom1504 force-pushed the remove-reset-sleep branch from cbef2b2 to dbc6404 Compare March 30, 2026 09:32
@rom1504 rom1504 merged commit 81ecd72 into master Mar 30, 2026
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant