test: light push should not throw an exception

This commit is contained in:
fryorcraken.eth 2023-09-21 11:54:17 +10:00
parent fb37c89e40
commit 8cbd4c1d00
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 3 additions and 7 deletions

View File

@ -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")
});
});
});