-
Notifications
You must be signed in to change notification settings - Fork 653
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
Extend runtime tests to run on testnet nodes #874
Conversation
assert_eq!(account_names[0], alice_account()); | ||
let mut nodes: Vec<_> = nodes | ||
.drain(..) | ||
.map(|cfg| match cfg { |
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.
.map(Node::new)
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.
That will return Node
instead of ThreadNode
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.
All tests written below accept Node
anyway. There is nothing specific in this code that requires ThreadNode
. We just need to modify them to accept Box<dyn Node>
instead of impl Node
.
assert_eq!(account_names[0], alice_account()); | ||
let mut nodes: Vec<_> = nodes | ||
.drain(..) | ||
.map(|cfg| match cfg { |
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.
All tests written below accept Node
anyway. There is nothing specific in this code that requires ThreadNode
. We just need to modify them to accept Box<dyn Node>
instead of impl Node
.
|
We should change them so that they take |
Actually, I take it back. Using |
Codecov Report
@@ Coverage Diff @@
## master #874 +/- ##
=========================================
Coverage ? 72.61%
=========================================
Files ? 78
Lines ? 9779
Branches ? 0
=========================================
Hits ? 7101
Misses ? 2678
Partials ? 0
Continue to review full report at Codecov.
|
No description provided.