mirror of https://github.com/waku-org/js-waku.git
test: fix ci logs (#1687)
* fix ci logs * replace lodash with uint8arrays/equals
This commit is contained in:
parent
1ec0c200ca
commit
9593a8a8a5
|
@ -87,14 +87,14 @@ jobs:
|
|||
with:
|
||||
nim_wakunode_image: wakuorg/go-waku:latest
|
||||
test_type: go-waku-master
|
||||
debug: waku*
|
||||
debug: js-waku*
|
||||
|
||||
node_with_nwaku_master:
|
||||
uses: ./.github/workflows/test-node.yml
|
||||
with:
|
||||
nim_wakunode_image: wakuorg/nwaku:deploy-wakuv2-test
|
||||
test_type: nwaku-master
|
||||
debug: waku*
|
||||
debug: js-waku*
|
||||
|
||||
maybe-release:
|
||||
name: release
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
"chai-as-promised": "^7.1.1",
|
||||
"debug": "^4.3.4",
|
||||
"dockerode": "^3.3.5",
|
||||
"lodash": "^4.17.21",
|
||||
"p-retry": "^6.1.0",
|
||||
"p-timeout": "^6.1.0",
|
||||
"portfinder": "^1.0.32",
|
||||
|
@ -71,7 +70,6 @@
|
|||
"@libp2p/bootstrap": "^9.0.2",
|
||||
"@types/chai": "^4.3.5",
|
||||
"@types/dockerode": "^3.3.19",
|
||||
"@types/lodash": "^4.14.199",
|
||||
"@types/mocha": "^10.0.1",
|
||||
"@types/sinon": "^10.0.16",
|
||||
"@types/tail": "^2.2.1",
|
||||
|
|
|
@ -2,7 +2,7 @@ import { DecodedMessage, DefaultPubSubTopic } from "@waku/core";
|
|||
import { Logger } from "@waku/utils";
|
||||
import { bytesToUtf8, utf8ToBytes } from "@waku/utils/bytes";
|
||||
import { AssertionError, expect } from "chai";
|
||||
import isEqual from "lodash/isEqual";
|
||||
import { equals } from "uint8arrays/equals";
|
||||
|
||||
import { MessageRpcResponse } from "./node/interfaces.js";
|
||||
|
||||
|
@ -45,7 +45,7 @@ export class MessageCollector {
|
|||
return message.payload === text;
|
||||
} else if (message.payload instanceof Uint8Array) {
|
||||
log.info(`Checking payload: ${bytesToUtf8(message.payload)}`);
|
||||
return isEqual(message.payload, utf8ToBytes(text));
|
||||
return equals(message.payload, utf8ToBytes(text));
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
|
@ -19,7 +19,7 @@ import {
|
|||
} from "@waku/message-encryption/symmetric";
|
||||
import { bytesToUtf8, utf8ToBytes } from "@waku/utils/bytes";
|
||||
import { expect } from "chai";
|
||||
import isEqual from "lodash/isEqual";
|
||||
import { equals } from "uint8arrays/equals";
|
||||
|
||||
import {
|
||||
delay,
|
||||
|
@ -159,7 +159,7 @@ describe("Waku Store, general", function () {
|
|||
createDecoder(testItem["value"])
|
||||
])) {
|
||||
for await (const msg of query) {
|
||||
expect(isEqual(msg!.payload, utf8ToBytes(messageText))).to.eq(true);
|
||||
expect(equals(msg!.payload, utf8ToBytes(messageText))).to.eq(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue