Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Ensure cleanup executes for scripts-whitespace-windows test.
Browse files Browse the repository at this point in the history
Test failure was leaving an assortment of files dangling around:
   test/tap/scripts-whitespace-windows/cache/scripts-whitespace-windows-dep/0.0.1/package.tgz
   test/tap/scripts-whitespace-windows/cache/scripts-whitespace-windows-dep/0.0.1/package/package.json
  • Loading branch information
timoxley authored and othiym23 committed Sep 23, 2014
1 parent ef9101b commit e468527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tap/scripts-whitespace-windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test('setup', function (t) {

child.stdout.setEncoding('utf8')
child.stderr.on('data', function(chunk) {
throw new Error('got stderr data: ' + JSON.stringify('' + chunk))
t.fail('got stderr data: ' + JSON.stringify('' + chunk))
})
child.on('close', function () {
t.end()
Expand All @@ -47,7 +47,7 @@ test('test', function (t) {

child.stdout.setEncoding('utf8')
child.stderr.on('data', function(chunk) {
throw new Error('got stderr data: ' + JSON.stringify('' + chunk))
t.fail('got stderr data: ' + JSON.stringify('' + chunk))
})
child.stdout.on('data', ondata)
child.on('close', onend)
Expand Down

0 comments on commit e468527

Please sign in to comment.