Skip to content

Commit

Permalink
debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Oct 1, 2024
1 parent f536302 commit 67f36c9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {

import { runNodes } from "./utils.js";

describe("Waku Filter V2: Subscribe: Single Service Node", function () {
describe.only("Waku Filter V2: Subscribe: Single Service Node", function () {
// Set the timeout for all tests in this suite. Can be overwritten at test level
this.timeout(10000);
let waku: LightNode;
Expand Down Expand Up @@ -271,7 +271,7 @@ describe("Waku Filter V2: Subscribe: Single Service Node", function () {
});
});

it("Subscribe to 100 topics (new limit) at once and receives messages", async function () {
it.only("Subscribe to 100 topics (new limit) at once and receives messages", async function () {
this.timeout(100_000);
const topicCount = 100;
const td = generateTestData(topicCount, { pubsubTopic: TestPubsubTopic });
Expand All @@ -280,9 +280,13 @@ describe("Waku Filter V2: Subscribe: Single Service Node", function () {

// Send a unique message on each topic.
for (let i = 0; i < topicCount; i++) {
performance.mark("start");
await waku.lightPush.send(td.encoders[i], {
payload: utf8ToBytes(`Message for Topic ${i + 1}`)
});
performance.mark("end");
const measure = performance.measure("lightPush", "start", "end");
console.log("DEBUG:", measure.name, measure.duration);
}

// Verify that each message was received on the corresponding topic.
Expand Down

0 comments on commit 67f36c9

Please sign in to comment.