Skip to content

Commit

Permalink
test, bugfix: process test error in debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Apr 28, 2019
1 parent f2ebb2d commit df27565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/process/exec18.js
Expand Up @@ -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;
}
3 changes: 1 addition & 2 deletions test/process_test.js
Expand Up @@ -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", () => {
Expand Down

0 comments on commit df27565

Please sign in to comment.