test: fix http tests.

This commit is contained in:
Christopher Jeffrey 2016-09-06 00:56:25 -07:00
parent c43c84cde7
commit a02564e0a1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,7 @@ HTTPClient.prototype._close = function close(callback) {
if (!this.socket)
return utils.nextTick(callback);
this.socket.destroy();
this.socket.disconnect();
this.socket = null;
utils.nextTick(callback);

View File

@ -183,6 +183,7 @@ describe('HTTP', function() {
it('should cleanup', function(cb) {
constants.tx.COINBASE_MATURITY = 100;
wallet.close();
node.close(cb);
});
});