Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[test] fix end called twice

by removeing the t.plan(). There is really no need for it.
  • Loading branch information...
commit 62e23c735d68def62499406b004fc348ca8663c4 1 parent ce92479
@AndreasMadsen authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 test/callbacks.js
View
8 test/callbacks.js
@@ -98,20 +98,14 @@ test("callback hook", function (t) {
});
t.test("attach callback on class method", function (t) {
- t.plan(4);
-
var callOrder = 0;
var server = require('net').createServer();
// argument passed public to listen
function listenCallback() {
t.equal(callOrder++, 1, 'real callback was executed after patch callback');
- console.log('hi');
- server.close(function () {
- console.log('close');
- t.end();
- });
+ server.close(t.end.bind(t));
}
// attach monkey patch callback
Please sign in to comment.
Something went wrong with that request. Please try again.