From 8b0d16d5a3d1b999ab07a1c93e4ad18d7acb4a22 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Tue, 10 May 2016 18:54:02 -0400 Subject: [PATCH] test: check callcount for retry in bitcoind spawn child method --- test/services/bitcoind.unit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/services/bitcoind.unit.js b/test/services/bitcoind.unit.js index 2f8875e7..f2db82a1 100644 --- a/test/services/bitcoind.unit.js +++ b/test/services/bitcoind.unit.js @@ -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(); });