mirror of https://github.com/waku-org/js-waku.git
fix: adding delay between dials (#1973)
* fix: adding delay between dials * removing comment
This commit is contained in:
parent
5fb100602b
commit
80a9525157
|
@ -20,6 +20,7 @@ import Sinon from "sinon";
|
|||
import {
|
||||
afterEachCustom,
|
||||
beforeEachCustom,
|
||||
delay,
|
||||
isNwakuAtLeast,
|
||||
makeLogFileName,
|
||||
resolveAutoshardingCluster,
|
||||
|
@ -170,6 +171,7 @@ describe("getConnectedPeersForProtocolAndShard", function () {
|
|||
|
||||
waku = await createLightNode({ shardInfo: shardInfo2 });
|
||||
await waku.libp2p.dialProtocol(serviceNode1Ma, LightPushCodec);
|
||||
await delay(500);
|
||||
await waku.libp2p.dialProtocol(serviceNode2Ma, LightPushCodec);
|
||||
|
||||
await waku.start();
|
||||
|
@ -223,6 +225,7 @@ describe("getConnectedPeersForProtocolAndShard", function () {
|
|||
|
||||
waku = await createLightNode({ shardInfo: shardInfo2 });
|
||||
await waku.libp2p.dialProtocol(serviceNodeMa1, LightPushCodec);
|
||||
await delay(500);
|
||||
await waku.libp2p.dialProtocol(serviceNodeMa2, LightPushCodec);
|
||||
await waku.start();
|
||||
await waitForRemotePeer(waku, [Protocols.LightPush]);
|
||||
|
@ -362,6 +365,7 @@ describe("getConnectedPeersForProtocolAndShard", function () {
|
|||
|
||||
waku = await createLightNode({ shardInfo: shardInfo2 });
|
||||
await waku.libp2p.dialProtocol(serviceNode1Ma, LightPushCodec);
|
||||
await delay(500);
|
||||
await waku.libp2p.dialProtocol(serviceNode2Ma, LightPushCodec);
|
||||
|
||||
await waku.start();
|
||||
|
@ -416,6 +420,7 @@ describe("getConnectedPeersForProtocolAndShard", function () {
|
|||
|
||||
waku = await createLightNode({ shardInfo: shardInfo2 });
|
||||
await waku.libp2p.dialProtocol(serviceNodeMa1, LightPushCodec);
|
||||
await delay(500);
|
||||
await waku.libp2p.dialProtocol(serviceNodeMa2, LightPushCodec);
|
||||
await waku.start();
|
||||
await waitForRemotePeer(waku, [Protocols.LightPush]);
|
||||
|
|
Loading…
Reference in New Issue