fix: remote peer rejected (#1645)

* update empty payload light push tests response

* bump up nwaku version

* remove only

* remove diff between gowaku and nwaku
This commit is contained in:
Florin Barbu 2023-10-20 10:21:15 +03:00 committed by GitHub
parent 2af96281cd
commit 1150ddcd02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -71,13 +71,13 @@ jobs:
node:
uses: ./.github/workflows/test-node.yml
with:
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.20.0' }}
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.21.0' }}
test_type: node
node_optional:
uses: ./.github/workflows/test-node.yml
with:
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.20.0' }}
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'wakuorg/nwaku:v0.21.0' }}
test_type: node-optional
node_with_go_waku_master:

View File

@ -27,7 +27,7 @@ const WAKU_SERVICE_NODE_PARAMS =
process.env.WAKU_SERVICE_NODE_PARAMS ?? undefined;
const NODE_READY_LOG_LINE = "Node setup complete";
const DOCKER_IMAGE_NAME = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.20.0";
const DOCKER_IMAGE_NAME = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.21.0";
const isGoWaku = DOCKER_IMAGE_NAME.includes("go-waku");

View File

@ -3,7 +3,7 @@ import { promisify } from "util";
const execAsync = promisify(exec);
const WAKUNODE_IMAGE = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.20.0";
const WAKUNODE_IMAGE = process.env.WAKUNODE_IMAGE || "wakuorg/nwaku:v0.21.0";
async function main() {
try {

View File

@ -79,6 +79,7 @@ describe("Waku Light Push", function () {
payload: new Uint8Array()
});
expect(pushResponse.recipients.length).to.eq(0);
expect(pushResponse.errors).to.include(SendError.EMPTY_PAYLOAD);
expect(await messageCollector.waitForMessages(1)).to.eq(false);
});
@ -152,8 +153,7 @@ describe("Waku Light Push", function () {
});
} else {
expect(pushResponse.recipients.length).to.eq(0);
// Should be `REMOTE_PEER_REJECTED`, tracked with https://github.com/waku-org/nwaku/issues/2059
expect(pushResponse.errors).to.include(SendError.REMOTE_PEER_FAULT);
expect(pushResponse.errors).to.include(SendError.REMOTE_PEER_REJECTED);
expect(await messageCollector.waitForMessages(1)).to.eq(false);
}
});