From 80499af194181cf6618949f6c3e4b6ba8a35d3c7 Mon Sep 17 00:00:00 2001 From: Yemel Jardi Date: Thu, 26 Jun 2014 10:47:39 -0300 Subject: [PATCH] fix error and improve performance --- test/test.Wallet.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test.Wallet.js b/test/test.Wallet.js index 14a7ee490..bcfe023b7 100644 --- a/test/test.Wallet.js +++ b/test/test.Wallet.js @@ -534,11 +534,12 @@ describe('Wallet model', function() { }, ]; + var roundWallet = cachedCreateW2(); roundErrorChecks.forEach(function(c) { - it('check rounding errors ' + c.unspent[0], function(done) { - var w = cachedCreateW2(); - w.generateAddress(); + it('#getBalance should handle rounding errors: ' + c.unspent[0], function(done) { + var w = roundWallet; + //w.generateAddress(); w.blockchain.fixUnspent(c.unspent.map(function(u) { return { amount: u