Skip to content
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

fix: false positive wallet tests #2539

Conversation

i1skn
Copy link
Contributor

@i1skn i1skn commented Feb 7, 2019

Two tests in the wallet were actually failing, we were just ignoring them. This fixes it.

@@ -366,10 +366,10 @@ fn perform_restore(test_dir: &str) -> Result<(), libwallet::Error> {
fn wallet_restore() {
let test_dir = "test_output/wallet_restore";
if let Err(e) = setup_restore(test_dir) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not setup_restore(test_dir).expect("Libwallet Error")? It is shorter and does almost the same, panic will print out the stacktrace. Also below

@hashmap hashmap added the bug label Feb 8, 2019
@hashmap hashmap added this to the 1.0.2 milestone Feb 8, 2019
@hashmap
Copy link
Contributor

hashmap commented Feb 8, 2019

Hm, please ignore my comment, I see that this error handling pattern is common, perhaps we can fix it in a separate pr (and keep backtrace if we like it)

@yeastplume
Copy link
Member

Ahh, good catch, the position of finalize would have changed recently. Thanks!

@yeastplume yeastplume merged commit 49ca8eb into mimblewimble:master Feb 8, 2019
@i1skn i1skn deleted the fix-false-positive-wallet-tests branch February 8, 2019 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants