mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-12 03:24:14 +00:00
History sync test drain stub
- Close test stubs the admission drain with the deadline signature - Stubbed drain reports every request drained
This commit is contained in:
@@ -37,7 +37,7 @@ public class AsyncPregenHistorySyncTest {
|
|||||||
method.close();
|
method.close();
|
||||||
}
|
}
|
||||||
InOrder order = inOrder(admission, engine);
|
InOrder order = inOrder(admission, engine);
|
||||||
order.verify(admission).awaitDrain(anyLong(), any(), any());
|
order.verify(admission).awaitDrain(anyLong(), any(), anyLong(), any(), any());
|
||||||
order.verify(engine).syncGenerationHistory();
|
order.verify(engine).syncGenerationHistory();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,6 +63,8 @@ public class AsyncPregenHistorySyncTest {
|
|||||||
set(method, "world", world);
|
set(method, "world", world);
|
||||||
set(method, "closing", new AtomicBoolean());
|
set(method, "closing", new AtomicBoolean());
|
||||||
set(method, "holdsWorkerBoost", new AtomicBoolean());
|
set(method, "holdsWorkerBoost", new AtomicBoolean());
|
||||||
|
when(admission.awaitDrain(anyLong(), any(), anyLong(), any(), any()))
|
||||||
|
.thenReturn(new PregenAdmissionGate.Drain(true, false, 0));
|
||||||
set(method, "admission", admission);
|
set(method, "admission", admission);
|
||||||
set(method, "mantleCleanup", new PregenSerialWorker("Test Mantle Cleanup", "world"));
|
set(method, "mantleCleanup", new PregenSerialWorker("Test Mantle Cleanup", "world"));
|
||||||
set(method, "chunkFlush", new PregenSerialWorker("Test Chunk Flush", "world"));
|
set(method, "chunkFlush", new PregenSerialWorker("Test Chunk Flush", "world"));
|
||||||
|
|||||||
Reference in New Issue
Block a user