-
Notifications
You must be signed in to change notification settings - Fork 59
Fix non stop florestad process in functional tests #434
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 non stop florestad process in functional tests #434
Conversation
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 like the changes, just a few comments.
c3a39ce
to
4376c06
Compare
a6efc87
to
1912458
Compare
fa80b11
to
005fb13
Compare
b24d0e4
to
eda92cf
Compare
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, just a thing:
db17b6a
to
debf6d0
Compare
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.
cACK
, could you squash the commits ?
Sure, i was talking right now with @Davidson-Souza about. He requested, however, to keep the commits of each suite separate. |
debf6d0
to
a3e64e3
Compare
ACK a3e64e3 |
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.
Just one tiny thing and we are good
Fix vinteumorg#426. The methods below, in addition to performing case assertions, stop all running nodes if an assertion fails: * assertTrue for boolean condition; * assertIsNone for None values; * assertIsSome for non-None values; * assertEqual for equality conditions; * assertIn for expected item in a list; * assertMatch for expected strings in a given regex pattern; * assertRaises for expected exceptions. Update
* addnode; * getblock; * getblockchaininfo; * getblockhash; * getmemoryinfo; * getpeerinfo; * getroots; * getrpcinfo; * stop; * uptime.
* restart; * ssl (TLS communication with a ssl-enabled node); * ssl-fail (failure on a TLS communication with non-ssl node).
a3e64e3
to
bcb64d5
Compare
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.
ACK bcb64d5
Fix #426
What is the purpose of this pull request?
Which crates are being modified?
Description
Added a pipeline for assertions, where a failure of a condition start a node's shutdown procedure. The pipeline can be used with these methods:
assertTrue for boolean condition;
assertEqual for expected general condition;
assertIn for expected item in a list;
assertMatch for expected strings in a given regex pattern;
assertRaises for expected exceptions.
The pipeline was applied in these suites:
Added assertion pipeline to example suite;
Added assertion pipeline to floresta-cli suite;
Added assertion pipeline to florestad suite.
Notes to the reviewers
This PR depends on #431 to work without false positives.
Checklist
just lint
cargo test