-
Notifications
You must be signed in to change notification settings - Fork 0
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
Tweak integration tests #10
Tweak integration tests #10
Conversation
- Use random TCP ports - Use random output files - Use goldenfile (has the practical UPDATE_GOLDENFILES=1 flag)
348186c
to
f32dded
Compare
let rt = Runtime::new().unwrap(); | ||
let _ = rt.block_on(async move { | ||
let addr = "127.0.0.1:4001".to_string(); | ||
let port: u16 = random_free_port().unwrap(); |
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.
👍
@@ -85,4 +85,6 @@ futures-util = "0.3" | |||
bytes = "1.7.2" | |||
|
|||
[dev-dependencies] | |||
assert_cmd = "2" | |||
goldenfile = "1.7.3" |
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.
👍
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.
nice move with daemon separation! Also very good refactorings and usage of goldenfile plus using random port. Big kudos for the adopted simplifications 👏
Have put the first commit in a separate PR to oura txpipe#829
Targets #8
Example failure output with goldenfile
(the differing 11 and 12 are underscored)