Skip to content

Commit 1541ecf

Browse files
committed
Cleanup instance at the end of a test
1 parent f959dab commit 1541ecf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/java/net/minestom/testing/TestPlayerIntegrationTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ void testCustomPlayerCreation(@NotNull Env env) {
2424
assertEquals(instance, player.getInstance(), "Player should be in the created instance");
2525
assertEquals(Pos.ZERO, player.getPosition(), "Player should start at position (0, 0, 0)");
2626
assertEquals("RandName", player.getUsername(), "Player should have a random name");
27-
}
2827

29-
}
28+
env.destroyInstance(instance, true);
29+
}
30+
}

0 commit comments

Comments
 (0)