Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
test: simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Jun 12, 2016
1 parent e3ad035 commit 16ca862
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions test/helper6.js
@@ -1,9 +1,7 @@
'use strict';

const codecs = require('codecs');
const io = require('io');
const sys = require('system');


io.stdout.write(JSON.stringify(sys.argv.slice(2)) + '\n');
io.stdout.flush();
4 changes: 1 addition & 3 deletions test/test-process-spawn-stdio.js
Expand Up @@ -25,11 +25,9 @@ assert.equal(r.term_signal, 0);


p = proc.spawn([sys.executable, 'test/helper6.js'].concat(TEST_ARGS),
{stdin: 'pipe', stdout: 'pipe', stderr: 'pipe'});
{stdin: null, stdout: 'pipe', stderr: null});
assert.deepEqual(JSON.parse(p.stdout.readline()), TEST_ARGS);
p.stdin.close();
p.stdout.close();
p.stderr.close();
r = p.wait();
assert.equal(r.exit_status, 0);
assert.equal(r.term_signal, 0);

0 comments on commit 16ca862

Please sign in to comment.