get regtest to work
This commit is contained in:
parent
efdf38d5c2
commit
faf93a18a7
@ -66,6 +66,10 @@ describe('Daemon Binding Functionality', function() {
|
|||||||
network: 'regtest'
|
network: 'regtest'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bitcoind.start(function() {
|
||||||
|
log.info('Bitcoind started');
|
||||||
|
});
|
||||||
|
|
||||||
bitcoind.on('error', function(err) {
|
bitcoind.on('error', function(err) {
|
||||||
log.error('error="%s"', err.message);
|
log.error('error="%s"', err.message);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -36,15 +36,11 @@ describe('Bitcoin DB', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('#stop', 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});
|
var db = new DB({store: memdown});
|
||||||
db.store = {
|
|
||||||
close: sinon.stub().callsArg(0)
|
|
||||||
};
|
|
||||||
|
|
||||||
db.stop(function(err) {
|
db.stop(function(err) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
db.store.close.calledOnce.should.equal(true);
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user