-
Notifications
You must be signed in to change notification settings - Fork 52
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: ignore flaky tests #947
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
... and 3 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -78,29 +78,30 @@ mod tests { | |||
|
|||
use crate::new_alloy_provider; | |||
fn setup() { | |||
let server = Server::http("0.0.0.0:8000").unwrap(); | |||
let server = Server::http("0.0.0.0:9009").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.
I'm concerned that this will still be flaky in case something is using this port. Is there a way to let the OS assign an open port and retrieve it after? Sometimes this is done by setting the port to :0
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.
You may be able to use that and then do .server_addr to get the port it was bound to by the OS
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.
You may need to use bind and then from_listener to create the server.
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 mark the test to ignore for now. it should only run on local box.
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.
Okay, we should eventually fix this
[Closes/Fixes] #
Proposed Changes