Skip to content

Commit fb90bfa

Browse files
committed
e2e gossip deflake
1 parent 9e1d53c commit fb90bfa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

yarn-project/end-to-end/src/e2e_p2p/gossip_network.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { TxHash } from '@aztec/aztec.js/tx';
55
import { CheckpointNumber } from '@aztec/foundation/branded-types';
66
import { Signature } from '@aztec/foundation/eth-signature';
77
import { retryUntil } from '@aztec/foundation/retry';
8-
import { sleep } from '@aztec/foundation/sleep';
98
import type { ProverNode } from '@aztec/prover-node';
109
import type { SequencerClient } from '@aztec/sequencer-client';
1110
import { tryStop } from '@aztec/stdlib/interfaces/server';
@@ -64,7 +63,7 @@ describe('e2e_p2p_network', () => {
6463
startProverNode: false, // we'll start our own using p2p
6564
initialConfig: {
6665
...SHORTENED_BLOCK_TIME_CONFIG_NO_PRUNES,
67-
aztecSlotDuration: 24,
66+
aztecSlotDuration: 36,
6867
aztecEpochDuration: 4,
6968
slashingRoundSizeInEpochs: 2,
7069
slashingQuorum: 5,
@@ -145,8 +144,8 @@ describe('e2e_p2p_network', () => {
145144
shouldCollectMetrics(),
146145
);
147146

148-
// wait a bit for peers to discover each other
149-
await sleep(8000);
147+
t.logger.info('Waiting for nodes to connect');
148+
await t.waitForP2PMeshConnectivity(nodes, NUM_VALIDATORS);
150149

151150
// We need to `createNodes` before we setup account, because
152151
// those nodes actually form the committee, and so we cannot build

0 commit comments

Comments
 (0)