-
Notifications
You must be signed in to change notification settings - Fork 47
test: destroy #804
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
test: destroy #804
Conversation
Ad96el
left a comment
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.
LGTM. One style suggestion.
pallets/pallet-bonded-coins/src/tests/transactions/finish_destroy.rs
Outdated
Show resolved
Hide resolved
|
|
||
| // Verify that the pool state has been updated to destroying | ||
| let updated_pool = Pools::<Test>::get(&pool_id).unwrap(); | ||
| assert!(matches!(updated_pool.state, PoolStatus::Destroying)); |
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.
assert_eq! would look simpler. Same for the others further below
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.
5c56ce7 to
ccf6912
Compare
re/ https://github.com/KILTprotocol/ticket/issues/3671
Tests the three destruction extrinsics. All tests passing rn.
To be rebased after merging #791.
Checklist:
array[3]useget(3), ...)