warpSimTest
Build a MultiNodeWarpSim of n peers and run body under runTest(StandardTestDispatcher(), timeout = WARP_SIM_WEDGE_BACKSTOP) — the canonical harness for multi-node coordination-free warp tests. Closes every node after body. See MultiNodeWarpSim for the full determinism contract.
@Test
fun tasksConverge() = warpSimTest(n = 3) { sim ->
val tasks = (1..6).map { TaskId("t$it") }
tasks.forEach { sim.enqueueEcho(it) }
sim.awaitResults(tasks)
}Parameters
Number of peers (default 3).
Anti-entropy cadence, forwarded to multiNodeWarpSim.
Heartbeat timing, forwarded to multiNodeWarpSim.
Claim strategy, forwarded to multiNodeWarpSim.
Per-node registry builder, forwarded to multiNodeWarpSim.
Custom node builder, forwarded to multiNodeWarpSim.
Wall-clock wedge backstop, not a performance budget — read WARP_SIM_WEDGE_BACKSTOP before changing it, and in particular before tightening it. Fast failure is the job of the bounded await* helpers' virtual within bounds, which are load-independent and dump state.