Skip to content

chore(ci): Make tests for tracing-limit more robust #6632

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

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

jszwedko
Copy link
Member

@jszwedko jszwedko commented Mar 4, 2021

Use a fake clock since the OSX Github Actions runner seems particularly
noisy: #6614 (comment)

I should have done this originally anyway for robustness and to not
artificially bloat the test time.

Signed-off-by: Jesse Szwedko [email protected]

Use a fake clock since the OSX Github Actions runner seems particularly
noisy.

I should have done this originally anyway for robustness and to not
artificially bloat the test time.

Signed-off-by: Jesse Szwedko <[email protected]>
@jszwedko jszwedko requested review from blt, a team and prognant and removed request for a team March 4, 2021 22:13
}
});

let events = events.lock().unwrap();

dbg!(&events);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debug

@@ -15,6 +15,7 @@ dashmap = "4"
[dev-dependencies]
criterion = "0.3"
tracing = "0.1.15"
mock_instant = { version = "0.2" }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seemingly not a very popular crate, but I took a look and it seems to do the trick and is fairly stable.

https://github.com/museun/mock_instant

Copy link
Contributor

@blt blt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like a good fake clock.

@jszwedko
Copy link
Member Author

jszwedko commented Mar 4, 2021

@jszwedko jszwedko merged commit 78a9dc1 into master Mar 4, 2021
@jszwedko jszwedko deleted the more-robust-tracing-rate-limiting-tests branch March 4, 2021 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants