Skip to content

Remove redundant and misleading vanilla nether/end teleport tests#167

Merged
tastybento merged 2 commits intodevelopfrom
copilot/sub-pr-164-another-one
Mar 8, 2026
Merged

Remove redundant and misleading vanilla nether/end teleport tests#167
tastybento merged 2 commits intodevelopfrom
copilot/sub-pr-164-another-one

Conversation

Copy link
Contributor

Copilot AI commented Mar 8, 2026

testOnPlayerTeleportInVanillaNether and testOnPlayerTeleportInVanillaEnd claimed to test an early-return path ("no border activity") but both mocked inGameWorld to true and asserted Bukkit::getScheduler was invoked — directly contradicting their intent. Since onPlayerTeleport has no isIslandNether/isIslandEnd checks, those mocks had no effect, making these tests functionally identical to testOnPlayerTeleportInIslandNether/testOnPlayerTeleportInIslandEnd.

Changes

  • Removed testOnPlayerTeleportInVanillaNether and testOnPlayerTeleportInVanillaEnd — the early-return scenario (inGameWorldfalse) is already covered by testOnPlayerTeleportNotInGameWorld

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…TeleportInVanillaEnd tests

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback from PR #164 regarding Release 4.8.1 changes Remove redundant and misleading vanilla nether/end teleport tests Mar 8, 2026
@tastybento tastybento marked this pull request as ready for review March 8, 2026 01:09
@tastybento tastybento merged commit 683c1c4 into develop Mar 8, 2026
1 check failed
@tastybento tastybento deleted the copilot/sub-pr-164-another-one branch March 8, 2026 01:10
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.

2 participants