From faf93a18a7af05722a508e56bd490510a2d27000 Mon Sep 17 00:00:00 2001 From: Patrick Nagurny Date: Mon, 24 Aug 2015 13:32:13 -0400 Subject: [PATCH] get regtest to work --- integration/regtest.js | 4 ++++ test/db.unit.js | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) 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(); }); });