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

Improve pending proofs tests #367

Open
thesimplekid opened this issue Sep 26, 2024 · 0 comments
Open

Improve pending proofs tests #367

thesimplekid opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels

Comments

@thesimplekid
Copy link
Collaborator

These tests can be improved by selecting specific proofs to melt then using melt_proofs and then attempting to reuse the specefic selected proofs. This would ensure that it is know that the correct proofs are being tested for state. Currently the Memory database is used and there is only the one operation so pending proofs are related to the attempted melt, but if being specific would still be better. This would also allow better checking of fee used.

let melt = wallet.melt(&melt_quote.id).await;
assert!(melt.is_err());
attempt_to_swap_pending(&wallet).await?;

@thesimplekid thesimplekid self-assigned this Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant