From 60d676b27f956fb1d1f25fc857a416902b3c8608 Mon Sep 17 00:00:00 2001 From: danisharora099 Date: Thu, 18 Jan 2024 01:01:40 +0530 Subject: [PATCH] fix: tests --- packages/tests/src/lib/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/tests/src/lib/index.ts b/packages/tests/src/lib/index.ts index fc7d3452f0..9ccc8eee45 100644 --- a/packages/tests/src/lib/index.ts +++ b/packages/tests/src/lib/index.ts @@ -100,13 +100,16 @@ export class ServiceNodes { async sendRelayMessage( message: MessageRpcQuery, - pubsubTopic: string = DefaultPubsubTopic, + pubsubTopic?: string, raw = false ): Promise { let relayMessagePromises: Promise[]; if (raw) { relayMessagePromises = this.nodes.map((node) => - node.rpcCall("post_waku_v2_relay_v1_message", [message]) + node.rpcCall("post_waku_v2_relay_v1_message", [ + pubsubTopic && pubsubTopic, + message + ]) ); } else { relayMessagePromises = this.nodes.map((node) =>