Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Oct 11, 2024
1 parent 771440c commit 92d0a28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
4 changes: 1 addition & 3 deletions packages/tests/tests/health-manager/node.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ describe("Node Health Status Matrix Tests", function () {
);

if (lightPushPeers > 0) {
await waku.lightPush.send(TestEncoder, messagePayload, {
forceUseAllPeers: true
});
await waku.lightPush.send(TestEncoder, messagePayload);
}

if (filterPeers > 0) {
Expand Down
10 changes: 3 additions & 7 deletions packages/tests/tests/light-push/peer_management.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,9 @@ describe("Waku Light Push: Connection Management: E2E", function () {
// skipped because of https://github.com/waku-org/js-waku/pull/2155#discussion_r1787452696
it.skip("Failed peers are renewed", async function () {
// send a lightpush request -- should have all successes
const response1 = await waku.lightPush.send(
encoder,
{
payload: utf8ToBytes("Hello_World")
},
{ forceUseAllPeers: true }
);
const response1 = await waku.lightPush.send(encoder, {
payload: utf8ToBytes("Hello_World")
});

expect(response1.successes.length).to.be.equal(
waku.lightPush.numPeersToUse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,9 @@ describe("Waku Light Push (named sharding): Multiple PubsubTopics", function ()
const { failures: f1 } = await waku.lightPush.send(customEncoder1, {
payload: utf8ToBytes("M1")
});
const { failures: f2 } = await waku.lightPush.send(
customEncoder2,
{
payload: utf8ToBytes("M2")
},
{ forceUseAllPeers: true }
);
const { failures: f2 } = await waku.lightPush.send(customEncoder2, {
payload: utf8ToBytes("M2")
});

expect(f1).to.be.empty;
expect(f2).to.be.empty;
Expand Down

0 comments on commit 92d0a28

Please sign in to comment.