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 java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import org.bukkit.block.Biome;
|
import org.bukkit.block.Biome;
|
||||||
|
import org.junit.jupiter.api.AfterEach;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.TestInstance;
|
import org.junit.jupiter.api.TestInstance;
|
||||||
import org.junit.jupiter.api.Timeout;
|
import org.junit.jupiter.api.Timeout;
|
||||||
@ -70,6 +70,13 @@ public class UniBiomeIslandGeneratorTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@AfterEach
|
||||||
|
public void individualCleanup() {
|
||||||
|
blockValueCache.clearCache();
|
||||||
|
biomeCache.clearCache();
|
||||||
|
chunkExistenceCache.clearCache();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Timeout(value = 1, unit = TimeUnit.MINUTES)
|
@Timeout(value = 1, unit = TimeUnit.MINUTES)
|
||||||
public void testBiomeGenerationMultithread1608Chunks() {
|
public void testBiomeGenerationMultithread1608Chunks() {
|
||||||
|
Loading…
Reference in New Issue
Block a user