Skip to content

Commit 43972fb

Browse files
authored
Retry network / ReqResp tests (#3075)
* retry network / ReqResp tests * retry all network / ReqResp tests
1 parent b8ee5f2 commit 43972fb

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

packages/lodestar/test/e2e/network/gossipsub.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const opts: INetworkOptions = {
3030

3131
describe("network", function () {
3232
if (this.timeout() < 15 * 1000) this.timeout(15 * 1000);
33+
this.retries(2); // This test fail sometimes, with a 5% rate.
3334

3435
const logger = testLogger();
3536

packages/lodestar/test/e2e/network/network.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const opts: INetworkOptions = {
3434

3535
describe("network", function () {
3636
if (this.timeout() < 5000) this.timeout(5000);
37+
this.retries(2); // This test fail sometimes, with a 5% rate.
3738

3839
const afterEachCallbacks: (() => Promise<void> | void)[] = [];
3940
afterEach(async () => {

packages/lodestar/test/e2e/network/reqresp.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ chai.use(chaiAsPromised);
3131

3232
describe("network / ReqResp", function () {
3333
if (this.timeout() < 5000) this.timeout(5000);
34+
this.retries(2); // This test fail sometimes, with a 5% rate.
3435

3536
const multiaddr = "/ip4/127.0.0.1/tcp/0";
3637
const networkOptsDefault: INetworkOptions = {

0 commit comments

Comments
 (0)