-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Wallet test fixes #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallet test fixes #280
Conversation
var fee = 14570 | ||
var tx = wallet.createTx(to, value) | ||
assert.equal(tx.outs.length, 1) | ||
var tx1 = wallet.createTx(to, value - 546) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is just a clean-up and unrelated to the kill sinon specific change?
Edit: Just read your commit comment where you mentioned it :) Cool
+1 like |
We should probably still isolate the issue with sinon before shrugging it off though. |
Removed sinon-removing commit. Turns out the problem was very obscure, but none the less a fault in the test logic. |
As per the suggestion in #247,
this PR removes the use ofsinon
inTransaction
and instead tests that theTransaction
is exactly as it should be since the hash is deterministic.It also makes a few fixes thanks to jshint and re-works a test in
Wallet
which was not testing the desired behaviour.