Skip to content

Commit 1150ddc

Browse files
authored
fix: remote peer rejected (#1645)
* update empty payload light push tests response * bump up nwaku version * remove only * remove diff between gowaku and nwaku
1 parent 2af9628 commit 1150ddc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ jobs:
7171
node:
7272
uses: ./.github/workflows/test-node.yml
7373
with:
74-
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.20.0' }}
74+
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.21.0' }}
7575
test_type: node
7676

7777
node_optional:
7878
uses: ./.github/workflows/test-node.yml
7979
with:
80-
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.20.0' }}
80+
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.21.0' }}
8181
test_type: node-optional
8282

8383
node_with_go_waku_master:

packages/tests/src/node/node.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const WAKU_SERVICE_NODE_PARAMS =
2727
process.env.WAKU_SERVICE_NODE_PARAMS ?? undefined;
2828
const NODE_READY_LOG_LINE = "Node setup complete";
2929

30-
const DOCKER_IMAGE_NAME = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.20.0";
30+
const DOCKER_IMAGE_NAME = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.21.0";
3131

3232
const isGoWaku = DOCKER_IMAGE_NAME.includes("go-waku");
3333

packages/tests/src/run-tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { promisify } from "util";
33

44
const execAsync = promisify(exec);
55

6-
const WAKUNODE_IMAGE = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.20.0";
6+
const WAKUNODE_IMAGE = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.21.0";
77

88
async function main() {
99
try {

packages/tests/tests/light-push/index.node.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ describe("Waku Light Push", function () {
7979
payload: new Uint8Array()
8080
});
8181

82+
expect(pushResponse.recipients.length).to.eq(0);
8283
expect(pushResponse.errors).to.include(SendError.EMPTY_PAYLOAD);
8384
expect(await messageCollector.waitForMessages(1)).to.eq(false);
8485
});
@@ -152,8 +153,7 @@ describe("Waku Light Push", function () {
152153
});
153154
} else {
154155
expect(pushResponse.recipients.length).to.eq(0);
155-
// Should be `REMOTE_PEER_REJECTED`, tracked with https://github.com/waku-org/nwaku/issues/2059
156-
expect(pushResponse.errors).to.include(SendError.REMOTE_PEER_FAULT);
156+
expect(pushResponse.errors).to.include(SendError.REMOTE_PEER_REJECTED);
157157
expect(await messageCollector.waitForMessages(1)).to.eq(false);
158158
}
159159
});

0 commit comments

Comments
 (0)