Skip to content

Commit

Permalink
Fix an edge case for multi-client tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Feb 13, 2024
1 parent 9411e31 commit 0a93e2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/test/sim/mixed_client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ env.tracker.register({
await env.start({runTimeoutMs: estimatedTimeoutMs});
await connectAllNodes(env.nodes);

await waitForSlot(env.clock.getLastSlotOfEpoch(capellaForkEpoch + 1), env.nodes, {env, silent: true});
// Stopping at last slot usually cause assertion to fail because of missing data as node are shutting down
await waitForSlot(env.clock.getLastSlotOfEpoch(capellaForkEpoch + 1) + 2, env.nodes, {env, silent: true});

await env.stop();

0 comments on commit 0a93e2b

Please sign in to comment.