Merge pull request #760 from yemel/fix/test-changes
improve performance at rounding error tests
This commit is contained in:
commit
ed0ced1971
1 changed files with 4 additions and 3 deletions
|
|
@ -533,11 +533,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue