Skip to content

Commit 9593a8a

Browse files
authored
test: fix ci logs (#1687)
* fix ci logs * replace lodash with uint8arrays/equals
1 parent 1ec0c20 commit 9593a8a

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ jobs:
8787
with:
8888
nim_wakunode_image: wakuorg/go-waku:latest
8989
test_type: go-waku-master
90-
debug: waku*
90+
debug: js-waku*
9191

9292
node_with_nwaku_master:
9393
uses: ./.github/workflows/test-node.yml
9494
with:
9595
nim_wakunode_image: wakuorg/nwaku:deploy-wakuv2-test
9696
test_type: nwaku-master
97-
debug: waku*
97+
debug: js-waku*
9898

9999
maybe-release:
100100
name: release

packages/tests/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"chai-as-promised": "^7.1.1",
6161
"debug": "^4.3.4",
6262
"dockerode": "^3.3.5",
63-
"lodash": "^4.17.21",
6463
"p-retry": "^6.1.0",
6564
"p-timeout": "^6.1.0",
6665
"portfinder": "^1.0.32",
@@ -71,7 +70,6 @@
7170
"@libp2p/bootstrap": "^9.0.2",
7271
"@types/chai": "^4.3.5",
7372
"@types/dockerode": "^3.3.19",
74-
"@types/lodash": "^4.14.199",
7573
"@types/mocha": "^10.0.1",
7674
"@types/sinon": "^10.0.16",
7775
"@types/tail": "^2.2.1",

packages/tests/src/message_collector.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { DecodedMessage, DefaultPubSubTopic } from "@waku/core";
22
import { Logger } from "@waku/utils";
33
import { bytesToUtf8, utf8ToBytes } from "@waku/utils/bytes";
44
import { AssertionError, expect } from "chai";
5-
import isEqual from "lodash/isEqual";
5+
import { equals } from "uint8arrays/equals";
66

77
import { MessageRpcResponse } from "./node/interfaces.js";
88

@@ -45,7 +45,7 @@ export class MessageCollector {
4545
return message.payload === text;
4646
} else if (message.payload instanceof Uint8Array) {
4747
log.info(`Checking payload: ${bytesToUtf8(message.payload)}`);
48-
return isEqual(message.payload, utf8ToBytes(text));
48+
return equals(message.payload, utf8ToBytes(text));
4949
}
5050
return false;
5151
});

packages/tests/tests/store/index.node.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from "@waku/message-encryption/symmetric";
2020
import { bytesToUtf8, utf8ToBytes } from "@waku/utils/bytes";
2121
import { expect } from "chai";
22-
import isEqual from "lodash/isEqual";
22+
import { equals } from "uint8arrays/equals";
2323

2424
import {
2525
delay,
@@ -159,7 +159,7 @@ describe("Waku Store, general", function () {
159159
createDecoder(testItem["value"])
160160
])) {
161161
for await (const msg of query) {
162-
expect(isEqual(msg!.payload, utf8ToBytes(messageText))).to.eq(true);
162+
expect(equals(msg!.payload, utf8ToBytes(messageText))).to.eq(true);
163163
}
164164
}
165165
}

0 commit comments

Comments
 (0)