diff --git a/examples/eth-dm/package.json b/examples/eth-dm/package.json index bf99fff6cc..405f819d9d 100644 --- a/examples/eth-dm/package.json +++ b/examples/eth-dm/package.json @@ -28,7 +28,7 @@ "build:react": "react-scripts build", "eject": "react-scripts eject", "fix": "run-s fix:*", - "test": "npm-run-all build --parallel test:*", + "test": "run-s build test:*", "test:lint": "eslint src --ext .ts --ext .tsx", "test:prettier": "prettier \"src/**/*.{ts,tsx}\" \"./*.json\" --list-different", "test:spelling": "cspell \"{README.md,src/**/*.{ts,tsx},public/**/*.html}\" -c ../../.cspell.json", diff --git a/examples/web-chat/package.json b/examples/web-chat/package.json index c657513661..180eb49ea1 100644 --- a/examples/web-chat/package.json +++ b/examples/web-chat/package.json @@ -32,7 +32,7 @@ "test:unit": "react-scripts test", "eject": "react-scripts eject", "fix": "run-s fix:*", - "test": "npm-run-all build --parallel test:*", + "test": "run-s build test:*", "test:lint": "eslint src --ext .ts --ext .tsx", "test:prettier": "prettier \"src/**/*.{ts,tsx}\" \"./*.json\" --list-different", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.{ts,tsx},public/**/*.html}\" -c ../../.cspell.json", diff --git a/package.json b/package.json index c2aa2b5849..bcaf9a86ef 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "examples:pretest": "for d in examples/*; do (cd $d; npm install); done", "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:force-build": "(cd nim-waku && rm -rf ./build/ ./vendor && make -j$(nproc --all 2>/dev/null || echo 2) update) && run-s nim-waku:build", - "test": "npm-run-all build --parallel test:*", + "test": "run-s build test:*", "test:lint": "eslint src --ext .ts", "test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.conf.js\" --list-different", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", diff --git a/src/test_utils/nim_waku.ts b/src/test_utils/nim_waku.ts index c6b78c2997..6bf7cc716d 100644 --- a/src/test_utils/nim_waku.ts +++ b/src/test_utils/nim_waku.ts @@ -181,6 +181,11 @@ export class NimWaku { let timestamp; if (message.timestamp) { timestamp = message.timestamp.valueOf() / 1000; + if (Number.isInteger(timestamp)) { + // Add a millisecond to ensure it's not an integer + // Until https://github.com/status-im/nim-waku/issues/691 is done + timestamp += 0.001; + } } const rpcMessage = {