Skip to content

Commit

Permalink
epipe test: Use shared fd's, and don't run on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 7, 2016
1 parent c7c21af commit 22747b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/runner-epipe.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
var t = require('../')

if (process.env.TRAVIS) {
t.plan(0, 'skip on travis because this test is very timing dependent')
process.exit()
}

if (process.version.match(/^0\.1[02]\./)) {
t.plan(0, 'skip on old versions of node where child proc fds are flaky')
process.exit()
Expand Down Expand Up @@ -48,9 +53,8 @@ t.test('handle EPIPE gracefully', function (t) {
})
t.comment('start child')
var child = spawn(node, [run, ok], {
stdio: [ 0, 'pipe', 'pipe' ]
stdio: [ 0, head.stdin, 'pipe' ]
})
child.stdout.pipe(head.stdin)
var err = ''
child.stderr.on('data', function (c) {
console.error('got er data', c+'')
Expand Down

0 comments on commit 22747b6

Please sign in to comment.