Skip to content

Commit

Permalink
up debug
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Oct 1, 2024
1 parent 67f36c9 commit 1f618fe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/tests/tests/filter/single_node/subscribe.node.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {

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

describe.only("Waku Filter V2: Subscribe: Single Service Node", function () {
describe("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.only("Waku Filter V2: Subscribe: Single Service Node", function () {
});
});

it.only("Subscribe to 100 topics (new limit) at once and receives messages", async function () {
it("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,13 +280,11 @@ describe.only("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");
const now = Date.now();
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);
console.log("DEBUG:", Date.now() - now);
}

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

0 comments on commit 1f618fe

Please sign in to comment.