mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-11 21:15:01 +00:00
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
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -71,13 +71,13 @@ jobs:
|
|||||||
node:
|
node:
|
||||||
uses: ./.github/workflows/test-node.yml
|
uses: ./.github/workflows/test-node.yml
|
||||||
with:
|
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
|
test_type: node
|
||||||
|
|
||||||
node_optional:
|
node_optional:
|
||||||
uses: ./.github/workflows/test-node.yml
|
uses: ./.github/workflows/test-node.yml
|
||||||
with:
|
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
|
test_type: node-optional
|
||||||
|
|
||||||
node_with_go_waku_master:
|
node_with_go_waku_master:
|
||||||
|
@ -27,7 +27,7 @@ const WAKU_SERVICE_NODE_PARAMS =
|
|||||||
process.env.WAKU_SERVICE_NODE_PARAMS ?? undefined;
|
process.env.WAKU_SERVICE_NODE_PARAMS ?? undefined;
|
||||||
const NODE_READY_LOG_LINE = "Node setup complete";
|
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");
|
const isGoWaku = DOCKER_IMAGE_NAME.includes("go-waku");
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import { promisify } from "util";
|
|||||||
|
|
||||||
const execAsync = promisify(exec);
|
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() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
|
@ -79,6 +79,7 @@ describe("Waku Light Push", function () {
|
|||||||
payload: new Uint8Array()
|
payload: new Uint8Array()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
expect(pushResponse.recipients.length).to.eq(0);
|
||||||
expect(pushResponse.errors).to.include(SendError.EMPTY_PAYLOAD);
|
expect(pushResponse.errors).to.include(SendError.EMPTY_PAYLOAD);
|
||||||
expect(await messageCollector.waitForMessages(1)).to.eq(false);
|
expect(await messageCollector.waitForMessages(1)).to.eq(false);
|
||||||
});
|
});
|
||||||
@ -152,8 +153,7 @@ describe("Waku Light Push", function () {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
expect(pushResponse.recipients.length).to.eq(0);
|
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_REJECTED);
|
||||||
expect(pushResponse.errors).to.include(SendError.REMOTE_PEER_FAULT);
|
|
||||||
expect(await messageCollector.waitForMessages(1)).to.eq(false);
|
expect(await messageCollector.waitForMessages(1)).to.eq(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user