test: check callcount for retry in bitcoind spawn child method
This commit is contained in:
parent
f6bbe54293
commit
8b0d16d5a3
@ -1185,6 +1185,7 @@ describe('Bitcoin Service', function() {
|
|||||||
bitcoind.spawn.config.zmqpubrawtx = 'tcp://127.0.0.1:30001';
|
bitcoind.spawn.config.zmqpubrawtx = 'tcp://127.0.0.1:30001';
|
||||||
bitcoind._loadTipFromNode = sinon.stub().callsArgWith(1, new Error('test'));
|
bitcoind._loadTipFromNode = sinon.stub().callsArgWith(1, new Error('test'));
|
||||||
bitcoind._spawnChildProcess(function(err) {
|
bitcoind._spawnChildProcess(function(err) {
|
||||||
|
bitcoind._loadTipFromNode.callCount.should.equal(60);
|
||||||
err.should.be.instanceof(Error);
|
err.should.be.instanceof(Error);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user