Skip to content

Commit 7d47892

Browse files
authored
Merge pull request #60 from ssb-js/upgrade-tape
Upgrade tape to 5.0.1, fix tests
2 parents f747dd1 + 832bb70 commit 7d47892

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"devDependencies": {
2222
"chloride": "^2.2.8",
2323
"pull-pushable": "^2.2.0",
24-
"tape": "^4.8.0"
24+
"tape": "^5.0.1"
2525
},
2626
"scripts": {
2727
"test": "set -e; for t in test/*.js; do node $t; done"

test/plugs.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function testAbort (name, combined) {
394394
// This is messy, combined.server should be a proper async call
395395
setTimeout( function() {
396396
console.log('Calling close')
397-
close(function() {t.end()})
397+
close(t.end)
398398
}, 500)
399399
})
400400

@@ -426,8 +426,7 @@ tape('error should have client address on it', function (t) {
426426
//client should see client auth rejected
427427
t.ok(err)
428428
console.log('Calling close')
429-
close() // in this case, net.server.close(cb) never calls its cb, why?
430-
t.end()
429+
close(t.end)
431430
})
432431
})
433432
})

0 commit comments

Comments
 (0)