get regtest to work
This commit is contained in:
parent
efdf38d5c2
commit
faf93a18a7
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue