test: fix http tests.
This commit is contained in:
parent
c43c84cde7
commit
a02564e0a1
@ -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);
|
||||
|
||||
@ -183,6 +183,7 @@ describe('HTTP', function() {
|
||||
|
||||
it('should cleanup', function(cb) {
|
||||
constants.tx.COINBASE_MATURITY = 100;
|
||||
wallet.close();
|
||||
node.close(cb);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user