Clear cache after each test.

This commit is contained in:
Harrison Deng 2020-04-29 21:29:47 -05:00
parent 21e8e52b9c
commit 1b80c26348

View File

@ -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)