test: check callcount for retry in bitcoind spawn child method

This commit is contained in:
Braydon Fuller 2016-05-10 18:54:02 -04:00
parent f6bbe54293
commit 8b0d16d5a3
1 changed files with 1 additions and 0 deletions

View File

@ -1185,6 +1185,7 @@ describe('Bitcoin Service', function() {
bitcoind.spawn.config.zmqpubrawtx = 'tcp://127.0.0.1:30001';
bitcoind._loadTipFromNode = sinon.stub().callsArgWith(1, new Error('test'));
bitcoind._spawnChildProcess(function(err) {
bitcoind._loadTipFromNode.callCount.should.equal(60);
err.should.be.instanceof(Error);
done();
});