Skip to content

Commit

Permalink
Merge tag 'v11.1.1'
Browse files Browse the repository at this point in the history
11.1.1
  • Loading branch information
isaacs committed Feb 19, 2018
2 parents 1699eb9 + 95faf6c commit 2323c3b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/spawn.js
Expand Up @@ -109,7 +109,7 @@ class Spawn extends Base {
this.options.signal = signal

// spawn closing with no tests is treated as a skip.
if (this.results.plan && this.results.plan.skipAll && !code && !signal)
if (this.results && this.results.plan && this.results.plan.skipAll && !code && !signal)
this.options.skip = this.results.plan.skipReason || true

if (code || signal) {
Expand Down
4 changes: 2 additions & 2 deletions lib/tap.js
Expand Up @@ -9,9 +9,9 @@ const _didPipe = Symbol('_didPipe')

const monkeypatchEpipe = () => {
const emit = process.stdout.emit
process.stdout.emit = (ev, er) => {
process.stdout.emit = function (ev, er) {
if (ev !== 'error' || er.code !== 'EPIPE')
return emit.apply(process, arguments)
return emit.apply(process.stdout, arguments)
}
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "tap",
"version": "11.1.0",
"version": "11.1.1",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
"description": "A Test-Anything-Protocol library",
"homepage": "http://node-tap.org/",
Expand Down
9 changes: 9 additions & 0 deletions test/regression-many-asserts-epipe.js
@@ -0,0 +1,9 @@
'use strict'
// See https://github.com/tapjs/node-tap/issues/422
const t = require('../')
t.test('just a lot of asserts in rapid succession', t => {
for (let i = 0; i < 5000; i++) {
t.pass('a number is ' + i)
}
t.end()
})

0 comments on commit 2323c3b

Please sign in to comment.