From 8cbd4c1d00e708b2b059f310eef2ca21d57119e8 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Thu, 21 Sep 2023 11:54:17 +1000 Subject: [PATCH] test: light push should not throw an exception --- packages/tests/tests/waku.node.spec.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/tests/tests/waku.node.spec.ts b/packages/tests/tests/waku.node.spec.ts index 72bb3d8880..608b432bc9 100644 --- a/packages/tests/tests/waku.node.spec.ts +++ b/packages/tests/tests/waku.node.spec.ts @@ -91,13 +91,9 @@ describe("Waku Dial [node only]", function () { await waku.start(); await waku.dial(multiAddrWithId); await nwaku.stop(); - try { - await waku.lightPush?.send(TestEncoder, { - payload: utf8ToBytes("hello world") - }); - } catch (e) { - // We are not checking this exception - } + await waku.lightPush?.send(TestEncoder, { + payload: utf8ToBytes("hello world") + }); }); });