From abcbda8cf461d4f9ccff2d17a369a4d805ad5c19 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 9 Jun 2014 11:33:57 -0300 Subject: [PATCH] fixing tests --- test/test.Wallet.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/test/test.Wallet.js b/test/test.Wallet.js index be5914145..4e7b614dc 100644 --- a/test/test.Wallet.js +++ b/test/test.Wallet.js @@ -237,14 +237,27 @@ describe('Wallet model', function() { throw (); }); - it('call reconnect after interval', function(done) { + it.only('call reconnect after interval', function(done) { var w = createW2(); + var testTime = 1000; + var callCount = 0; + var cT=w.reconnectDelay; +console.log('[test.Wallet.js.238:cT:]',cT); //TODO + var t=0; + do { + callCount++; + t += cT; + cT *= 2; +console.log('[test.Wallet.js.242]',t, callCount); //TODO + } while (t