-
Notifications
You must be signed in to change notification settings - Fork 506
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
Code changes for the new Clippy version and running test on Windows #1704
Changes from 2 commits
0c25a13
930c3d5
03e990d
bdbbdb9
e97c6ae
597b7fd
d22f97f
f9b47f2
4bdbc33
32126b1
cb81591
9708e12
6ef5850
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -435,9 +435,11 @@ mod tests { | |
}) | ||
.expect("callback registration should succeed"); | ||
|
||
_ = meter_provider.force_flush(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to trigger the callback code deterministically. This lets us assert things on the receiver end with certainty instead of waiting for |
||
|
||
// Assert | ||
receiver | ||
.recv_timeout(interval * 2) | ||
.try_recv() | ||
.expect("message should be available in channel, indicating a collection occurred"); | ||
} | ||
|
||
|
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.
These tests use
use std::os::unix::fs::PermissionsExt
which cannot be used on Windows.