Clear cache after each test.
This commit is contained in:
parent
21e8e52b9c
commit
1b80c26348
@ -11,7 +11,7 @@ import java.util.concurrent.Future;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.bukkit.block.Biome;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.junit.jupiter.api.Timeout;
|
||||
@ -69,6 +69,13 @@ public class UniBiomeIslandGeneratorTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
public void individualCleanup() {
|
||||
blockValueCache.clearCache();
|
||||
biomeCache.clearCache();
|
||||
chunkExistenceCache.clearCache();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Timeout(value = 1, unit = TimeUnit.MINUTES)
|
||||
|
Loading…
Reference in New Issue
Block a user