mirror of https://github.com/status-im/js-waku.git
Use `--exit` to force termination of node after tests
This commit is contained in:
parent
d1e8ba2c6e
commit
27c3668121
|
@ -23,7 +23,7 @@
|
|||
"test:lint": "eslint src --ext .ts",
|
||||
"test:prettier": "prettier \"src/**/*.ts\" --list-different",
|
||||
"test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
|
||||
"test:unit": "nyc --silent mocha",
|
||||
"test:unit": "nyc --silent mocha --exit",
|
||||
"test:lint-proto": "buf lint",
|
||||
"check-cli": "run-s test diff-integration-tests check-integration-tests",
|
||||
"check-integration-tests": "run-s check-integration-test:*",
|
||||
|
|
|
@ -91,6 +91,8 @@ describe('Waku Relay', () => {
|
|||
});
|
||||
|
||||
it('Js publishes to nim', async function () {
|
||||
this.timeout(5000);
|
||||
|
||||
const message = Message.fromUtf8String('This is a message');
|
||||
// TODO: nim-waku does follow the `StrictNoSign` policy hence we need to change
|
||||
// it for nim-waku to process our messages. Can be removed once
|
||||
|
|
|
@ -79,6 +79,7 @@ export class NimWaku {
|
|||
|
||||
public stop() {
|
||||
this.process ? this.process.kill('SIGINT') : null;
|
||||
this.process = undefined;
|
||||
}
|
||||
|
||||
async waitForLog(msg: string) {
|
||||
|
|
Loading…
Reference in New Issue