diff --git a/src/test/java/ca/recrown/islandsurvivalcraft/caching/CacheTest.java b/src/test/java/ca/recrown/islandsurvivalcraft/caching/CacheTest.java index 3acf511..69168e7 100644 --- a/src/test/java/ca/recrown/islandsurvivalcraft/caching/CacheTest.java +++ b/src/test/java/ca/recrown/islandsurvivalcraft/caching/CacheTest.java @@ -19,7 +19,7 @@ import org.junit.jupiter.api.TestInstance.Lifecycle; @TestInstance(Lifecycle.PER_CLASS) public class CacheTest { private volatile Cache integerCache; - private final int LARGE_CACHE_SIZE = 16384; + private final int LARGE_CACHE_SIZE = 262144; private final int[] answers = new int[LARGE_CACHE_SIZE]; private final Random rand = new Random(); Cache lCache = new Cache<>(LARGE_CACHE_SIZE); diff --git a/src/test/java/ca/recrown/islandsurvivalcraft/world/generation/UniBiomeIslandGeneratorTest.java b/src/test/java/ca/recrown/islandsurvivalcraft/world/generation/UniBiomeIslandGeneratorTest.java index e9f00ec..61659de 100644 --- a/src/test/java/ca/recrown/islandsurvivalcraft/world/generation/UniBiomeIslandGeneratorTest.java +++ b/src/test/java/ca/recrown/islandsurvivalcraft/world/generation/UniBiomeIslandGeneratorTest.java @@ -67,8 +67,8 @@ public class UniBiomeIslandGeneratorTest { } @Test - public void testBiomeGenerationMultithread() { - int chunksToDo = 1000; + public void testBiomeGenerationMultithread1608Chunks() { + int chunksToDo = 268; Runnable g1 = new BiomeGenTask(chunksToDo, 0); Runnable g2 = new BiomeGenTask(chunksToDo, 1); Runnable g3 = new BiomeGenTask(chunksToDo, 2); @@ -93,8 +93,8 @@ public class UniBiomeIslandGeneratorTest { } @Test - public void testBiomeGenerationSingleThread() { - Runnable g1 = new BiomeGenTask(6000, 0); + public void testBiomeGenerationSingleThread1608Chunks() { + Runnable g1 = new BiomeGenTask(1608, 0); ExecutorService ex = Executors.newFixedThreadPool(6); ex.execute(g1);