Skip to content
Permalink
Browse files

test, bugfix: process test error in debug mode.

  • Loading branch information...
xicilion committed Apr 28, 2019
1 parent f2ebb2d commit df27565effb2dc82d357f53c13bd4874a5e9914f
Showing with 2 additions and 3 deletions.
  1. +1 −1 test/process/exec18.js
  2. +1 −2 test/process_test.js
@@ -4,5 +4,5 @@ process.exitCode = 18;

var conn = new ws.Socket("ws://999.99.999.999/not_exists");
conn.onerror = e => {
console.log(1800);
process.exitCode = 81;
}
@@ -132,8 +132,7 @@ describe('process', () => {

it("websocket connect", () => {
var p = process.open(cmd, [path.join(__dirname, 'process', 'exec18.js')]);
assert.equal(p.readLine(), "1800");
assert.equal(p.wait(), 18);
assert.equal(p.wait(), 81);
});

it("websocket disconnect", () => {

0 comments on commit df27565

Please sign in to comment.
You can’t perform that action at this time.