get regtest to work

This commit is contained in:
Patrick Nagurny 2015-08-24 13:32:13 -04:00
parent efdf38d5c2
commit faf93a18a7
2 changed files with 5 additions and 5 deletions

View File

@ -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);
});

View File

@ -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();
});
});