-
Notifications
You must be signed in to change notification settings - Fork 3
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
Clean up client<>server synchronization in stream test #485
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'm very surprised that this passes our current clippy lints; indentation seems off in multiple places
Also: what does this mean? Was this test failing on main? Or just locally? (and if it was failing just locally: why was it working correctly on Github CI?)
src/qos_core/src/io/stream.rs
Outdated
str::from_utf8, | ||
sync::{Arc, Barrier}, |
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.
Indentation seems off
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.
Thx fixed
src/qos_core/src/io/stream.rs
Outdated
// thread::spawn(move || { | ||
// server.start(); | ||
// }); |
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.
Did you mean to comment this out? I think we can remove this
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.
Removed
2cb384a
to
985f96c
Compare
Yeah, I have no idea why it wasn't failing in CI. It was failing for me consistently locally. FWIW I just ran clippy locally and there are several (not too many) errors there as well. |
|
||
// Create a barrier to synchronize between server and client | ||
let barrier = Arc::new(Barrier::new(2)); | ||
let server_barrier = Arc::clone(&barrier); | ||
|
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.
Same here, indentation is off (tabs vs spaces).
This tabs v space issue is there for all new lines you inserted so it's probably an editor configuration issue.
Closing this PR since the unit test is now stable locally. #492 was merged. |
Summary & Motivation (Problem vs. Solution)
The
stream_implements_read_write_traits
was failing locally. This makes the server<>client interaction less flakeyHow I Tested These Changes
Locally
Pre merge check list