133: Upgrade nim-waku to latest version r=D4nte a=D4nte



Co-authored-by: Franck Royer <franck@status.im>
This commit is contained in:
bors[bot] 2021-05-07 01:31:18 +00:00 committed by GitHub
commit 94353e813e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 6 deletions

@ -1 +1 @@
Subproject commit 967db6d6102646549bc2184b6fd26968ca764de7 Subproject commit 7c5df3379b42f1e5ddad66e84e152aec6ebdf10d

View File

@ -23,6 +23,7 @@
"pretest:1-init-git-submodules": "[ -f './nim-waku/build/wakunode2' ] || git submodule update --init --recursive", "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", "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: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": "run-s build test:*",
"test:lint": "eslint src --ext .ts", "test:lint": "eslint src --ext .ts",
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different", "test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different",

View File

@ -18,10 +18,12 @@ describe('Waku Store', () => {
this.timeout(5_000); this.timeout(5_000);
nimWaku = new NimWaku(makeLogFileName(this)); nimWaku = new NimWaku(makeLogFileName(this));
await nimWaku.start({ store: true }); await nimWaku.start({ persistMessages: true });
for (let i = 0; i < 2; i++) { 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({ waku = await Waku.create({
@ -50,10 +52,12 @@ describe('Waku Store', () => {
this.timeout(5_000); this.timeout(5_000);
nimWaku = new NimWaku(makeLogFileName(this)); nimWaku = new NimWaku(makeLogFileName(this));
await nimWaku.start({ store: true }); await nimWaku.start({ persistMessages: true });
for (let i = 0; i < 15; i++) { 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({ waku = await Waku.create({

View File

@ -32,7 +32,7 @@ export interface Args {
nodekey?: string; nodekey?: string;
portsShift?: number; portsShift?: number;
logLevel?: LogLevel; logLevel?: LogLevel;
store?: boolean; persistMessages?: boolean;
} }
export enum LogLevel { export enum LogLevel {