diff --git a/integration/regtest.js b/integration/regtest.js index d309da6b..97df6d4f 100644 --- a/integration/regtest.js +++ b/integration/regtest.js @@ -66,6 +66,10 @@ describe('Daemon Binding Functionality', function() { network: 'regtest' }); + bitcoind.start(function() { + log.info('Bitcoind started'); + }); + bitcoind.on('error', function(err) { log.error('error="%s"', err.message); }); diff --git a/test/db.unit.js b/test/db.unit.js index 13977f71..372ec016 100644 --- a/test/db.unit.js +++ b/test/db.unit.js @@ -36,15 +36,11 @@ describe('Bitcoin DB', function() { }); describe('#stop', function() { - it('should close the store', function(done) { + it('should immediately call the callback', function(done) { var db = new DB({store: memdown}); - db.store = { - close: sinon.stub().callsArg(0) - }; db.stop(function(err) { should.not.exist(err); - db.store.close.calledOnce.should.equal(true); done(); }); });