Skip to content

Commit 33545b8

Browse files
committed
fix(test): Remove exit process that kill test
1 parent 37294f5 commit 33545b8

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

lib/clussh.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ function clussh (config = {}) {
8080
process.nextTick(() => {
8181
workers.forEach(w => { w.closed = true })
8282
writeStream.end()
83-
process.exit(0) // NB: To quit when a repl is running - should be optional ?
83+
if (config.portControl || config.portHttp) {
84+
process.exit(0) // NB: To quit when a repl is running - should be optional ?
85+
}
8486
})
8587
}
8688
}

package-lock.json

Lines changed: 12 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"chai": "^4.1.2",
4444
"chai-as-promised": "^7.1.1",
4545
"docsify-cli": "^4.2.0",
46-
"mocha": "^4.1.0",
46+
"mocha": "^5.1.1",
4747
"nyc": "^11.4.1",
4848
"standard": "^10.0.3",
4949
"standard-version": "^4.3.0"

0 commit comments

Comments
 (0)