mirror of https://github.com/waku-org/js-waku.git
chore: add missing ensureSubscriptions call (#1628)
Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
This commit is contained in:
parent
d02838164f
commit
856d3de265
|
@ -113,7 +113,7 @@ describe("Waku Filter V2: Multiple PubSubtopics", function () {
|
|||
DefaultPubSubTopic,
|
||||
await nwaku2.getPeerId()
|
||||
);
|
||||
await nwaku.ensureSubscriptions([DefaultPubSubTopic]);
|
||||
await nwaku2.ensureSubscriptions([DefaultPubSubTopic]);
|
||||
|
||||
const messageCollector2 = new MessageCollector();
|
||||
|
||||
|
|
|
@ -327,6 +327,7 @@ describe("Waku Filter V2: Subscribe", function () {
|
|||
DefaultPubSubTopic,
|
||||
await nwaku2.getPeerId()
|
||||
);
|
||||
await nwaku2.ensureSubscriptions([DefaultPubSubTopic]);
|
||||
// Send a message using the new subscription
|
||||
const newContentTopic = "/test/2/waku-filter";
|
||||
const newEncoder = createEncoder({ contentTopic: newContentTopic });
|
||||
|
|
|
@ -112,6 +112,7 @@ describe("Waku Light Push : Multiple PubSubtopics", function () {
|
|||
relay: true,
|
||||
topic: [DefaultPubSubTopic]
|
||||
});
|
||||
await nwaku2.ensureSubscriptions([DefaultPubSubTopic]);
|
||||
await waku.dial(await nwaku2.getMultiaddrWithId());
|
||||
await waitForRemotePeer(waku, [Protocols.LightPush]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue