Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Aug 1, 2024
1 parent 3d698e6 commit d9a5e4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tests/tests/filter/peer_management.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ describe("Waku Filter: Peer Management: E2E", function () {
if (error) {
throw error;
}
await subscription.unsubscribe([contentTopic]);
const pingResult = await subscription.ping();
expect(pingResult.successes.length).to.equal(0);
expect(pingResult.failures.length).to.be.greaterThan(0);
Expand Down Expand Up @@ -209,6 +210,7 @@ describe("Waku Filter: Peer Management: E2E", function () {
await subscription.unsubscribe([contentTopic]);
pingResult = await subscription.ping();
expect(pingResult.failures.length).to.be.greaterThan(0);
await subscription.subscribe([decoder], () => {});
}

const finalPingResult = await subscription!.ping();
Expand Down
1 change: 1 addition & 0 deletions packages/tests/tests/filter/ping.node.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const runTests = (strictCheckNodes: boolean): void => {
if (error) {
throw error;
}
await subscription.unsubscribe([TestContentTopic]);
await validatePingError(subscription);
});

Expand Down
1 change: 1 addition & 0 deletions packages/tests/tests/filter/single_node/ping.node.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ describe("Waku Filter V2: Ping", function () {
if (error) {
throw error;
}
await subscription.unsubscribe([TestContentTopic]);
await validatePingError(subscription);
});

Expand Down

0 comments on commit d9a5e4d

Please sign in to comment.