mirror of https://github.com/waku-org/js-waku.git
Merge #133
133: Upgrade nim-waku to latest version r=D4nte a=D4nte Co-authored-by: Franck Royer <franck@status.im>
This commit is contained in:
commit
94353e813e
2
nim-waku
2
nim-waku
|
@ -1 +1 @@
|
|||
Subproject commit 967db6d6102646549bc2184b6fd26968ca764de7
|
||||
Subproject commit 7c5df3379b42f1e5ddad66e84e152aec6ebdf10d
|
|
@ -23,6 +23,7 @@
|
|||
"pretest:1-init-git-submodules": "[ -f './nim-waku/build/wakunode2' ] || git submodule update --init --recursive",
|
||||
"pretest:2-build-nim-waku": "[ -f './nim-waku/build/wakunode2' ] || run-s nim-waku:build",
|
||||
"nim-waku:build": "(cd nim-waku; NIMFLAGS=\"-d:chronicles_colors=off -d:chronicles_sinks=textlines -d:chronicles_log_level=TRACE\" make -j$(nproc --all 2>/dev/null || echo 2) wakunode2)",
|
||||
"nim-waku:upgrade":"(cd nim-waku && git pull origin master && rm -rf ./build/ ./vendor && make -j$(nproc --all 2>/dev/null || echo 2) update) && run-s nim-waku:build",
|
||||
"test": "run-s build test:*",
|
||||
"test:lint": "eslint src --ext .ts",
|
||||
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different",
|
||||
|
|
|
@ -18,10 +18,12 @@ describe('Waku Store', () => {
|
|||
this.timeout(5_000);
|
||||
|
||||
nimWaku = new NimWaku(makeLogFileName(this));
|
||||
await nimWaku.start({ store: true });
|
||||
await nimWaku.start({ persistMessages: true });
|
||||
|
||||
for (let i = 0; i < 2; i++) {
|
||||
await nimWaku.sendMessage(WakuMessage.fromUtf8String(`Message ${i}`));
|
||||
expect(
|
||||
await nimWaku.sendMessage(WakuMessage.fromUtf8String(`Message ${i}`))
|
||||
).to.be.true;
|
||||
}
|
||||
|
||||
waku = await Waku.create({
|
||||
|
@ -50,10 +52,12 @@ describe('Waku Store', () => {
|
|||
this.timeout(5_000);
|
||||
|
||||
nimWaku = new NimWaku(makeLogFileName(this));
|
||||
await nimWaku.start({ store: true });
|
||||
await nimWaku.start({ persistMessages: true });
|
||||
|
||||
for (let i = 0; i < 15; i++) {
|
||||
await nimWaku.sendMessage(WakuMessage.fromUtf8String(`Message ${i}`));
|
||||
expect(
|
||||
await nimWaku.sendMessage(WakuMessage.fromUtf8String(`Message ${i}`))
|
||||
).to.be.true;
|
||||
}
|
||||
|
||||
waku = await Waku.create({
|
||||
|
|
|
@ -32,7 +32,7 @@ export interface Args {
|
|||
nodekey?: string;
|
||||
portsShift?: number;
|
||||
logLevel?: LogLevel;
|
||||
store?: boolean;
|
||||
persistMessages?: boolean;
|
||||
}
|
||||
|
||||
export enum LogLevel {
|
||||
|
|
Loading…
Reference in New Issue