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

Commit

Permalink
Fix for secure server instance.
Browse files Browse the repository at this point in the history
Remove console log output from testing the tester :-)
  • Loading branch information
chriswiggins committed Sep 18, 2013
1 parent 8b80f50 commit 7098389
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions test/abstract_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,20 @@ module.exports = function(moscaSettings, createConnection) {
async.waterfall([
function(cb){
buildAndConnect(d, opts, function(client1){
//console.log("hi");
cb(null, client1);
});
},
function(client1, cb){
//console.log("h2i");
buildAndConnect(d, opts, function(client2){
//console.log("hi2");
//console.log(client2);
//console.log('heh');
expect(client1.stream.destroyed).to.eql(true);
if(settings.secure === undefined){
expect(client1.stream.destroyed).to.eql(true);
}else{
expect(client1.stream._destroyed).to.eql(true);
}
client2.disconnect();
});
}

}
]);

});

it("should close the connection after the keepalive interval", function(done) {
Expand Down

0 comments on commit 7098389

Please sign in to comment.