Skip to content
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

Add a test subscriber guard to properly capture tracing messages #445

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

jamesmunns
Copy link
Collaborator

Closes #444

@jamesmunns jamesmunns merged commit e6b1fce into main Jun 20, 2023
17 checks passed
@jamesmunns jamesmunns deleted the james/hold-me-closer-tracing-subscriber branch June 20, 2023 16:00
hawkw pushed a commit that referenced this pull request Jun 20, 2023
The "init tracing" test helper returned a guard that the caller
is supposed to hold, but none (or not all?) of the tests that called it
actually held it.

This makes a single return type (because `rustc` was Big Mad when I used
`Box<dyn Drop>`) based on the features, and marks it as must use.

This change allows for capturing (or viewing) of tracing output during
timer wheel tests.

Closes #444
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