mirror of https://github.com/waku-org/js-waku.git
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:
parent
2af96281cd
commit
1150ddcd02
|
@ -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:
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue