Skip to content

Commit

Permalink
Fix network disconnect peers e2e test on CI (#4747)
Browse files Browse the repository at this point in the history
* Increase sleep time for peer disconnect network e2e test

* Skip flaky eth1 test

Co-authored-by: Cayman <[email protected]>
  • Loading branch information
twoeths and wemeetagain authored Nov 10, 2022
1 parent b9c7bae commit 07e02aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/beacon-node/test/e2e/eth1/stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Eth1Provider} from "../../../src/eth1/provider/eth1Provider.js";
import {getGoerliRpcUrl} from "../../testParams.js";
import {Eth1Options} from "../../../src/eth1/options.js";

describe("Eth1 streams", function () {
describe.skip("Eth1 streams", function () {
this.timeout("2 min");

let controller: AbortController;
Expand Down
4 changes: 2 additions & 2 deletions packages/beacon-node/test/e2e/network/network.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ describe("network", function () {
await connected;

const disconnection = Promise.all([onPeerDisconnect(netA), onPeerDisconnect(netB)]);
await sleep(100);
await sleep(200);

await disconnect(netA, netB.peerId);
await disconnection;
await sleep(200);
await sleep(400);

expect(Array.from(netA.getConnectionsByPeer().values()).length).to.equal(0);
expect(Array.from(netB.getConnectionsByPeer().values()).length).to.equal(0);
Expand Down

0 comments on commit 07e02aa

Please sign in to comment.