From 385fbbd9fb10a73c12a758c43877275cd0ad0967 Mon Sep 17 00:00:00 2001 From: Akhilesh Kumar Date: Tue, 28 Apr 2026 22:12:11 +0000 Subject: [PATCH] test(core): increase event loop yield timeout in SimulationHarness to prevent flakiness --- packages/core/src/context/system-tests/simulationHarness.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/context/system-tests/simulationHarness.ts b/packages/core/src/context/system-tests/simulationHarness.ts index 23ea1b5e46..1082041c57 100644 --- a/packages/core/src/context/system-tests/simulationHarness.ts +++ b/packages/core/src/context/system-tests/simulationHarness.ts @@ -103,7 +103,7 @@ export class SimulationHarness { ); // 3. Yield to event loop to allow internal async subscribers and orchestrator to finish - await new Promise((resolve) => setTimeout(resolve, 50)); + await new Promise((resolve) => setTimeout(resolve, 200)); // 3.1 Simulate what projectCompressedHistory does with the sync handlers let currentView = this.contextManager.getNodes();