Fix: LocalChunkProviderTest
@@ -111,6 +111,7 @@ public void tearDown() {
void testGenerateSingleChunk() throws InterruptedException, ExecutionException, TimeoutException {
Vector3i chunkPosition = new Vector3i(0, 0, 0);
requestCreatingOrLoadingArea(chunkPosition).get(WAIT_CHUNK_IS_READY_IN_SECONDS, TimeUnit.SECONDS);
+ chunkProvider.update();
final ArgumentCaptor<Event> eventArgumentCaptor = ArgumentCaptor.forClass(Event.class);
verify(worldEntity, atLeast(2)).send(eventArgumentCaptor.capture());
@@ -139,6 +140,7 @@ void testGenerateSingleChunkWithBlockLifeCycle() throws InterruptedException, Ex
blockAtBlockManager.setLifecycleEventsRequired(true);
blockAtBlockManager.setEntity(mock(EntityRef.class));
requestCreatingOrLoadingArea(chunkPosition).get(WAIT_CHUNK_IS_READY_IN_SECONDS, TimeUnit.SECONDS);
+ chunkProvider.update();
final ArgumentCaptor<Event> worldEventCaptor = ArgumentCaptor.forClass(Event.class);
verify(worldEntity, atLeast(2)).send(worldEventCaptor.capture());
@@ -180,6 +182,7 @@ void testLoadSingleChunk() throws InterruptedException, ExecutionException, Time
storageManager.add(chunk);
requestCreatingOrLoadingArea(chunkPosition).get(WAIT_CHUNK_IS_READY_IN_SECONDS, TimeUnit.SECONDS);
+ chunkProvider.update();
Assertions.assertTrue(((TestChunkStore) storageManager.loadChunkStore(chunkPosition)).isEntityRestored(),
"Entities must be restored by loading");
@@ -204,6 +207,7 @@ void testLoadSingleChunkWithBlockLifecycle() throws InterruptedException, Execut
blockAtBlockManager.setEntity(mock(EntityRef.class));
requestCreatingOrLoadingArea(chunkPosition).get(WAIT_CHUNK_IS_READY_IN_SECONDS, TimeUnit.SECONDS);
+ chunkProvider.update();
Assertions.assertTrue(((TestChunkStore) storageManager.loadChunkStore(chunkPosition)).isEntityRestored(),
"Entities must be restored by loading");
