mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
Refresh tracing interest in the token estimate test (#38400)
## What changed Rebuild the tracing callsite interest cache after installing the test-local subscriber so the `event_enabled!` assertion uses that subscriber's filters. GitOrigin-RevId: d221dca4d7e7cb2ddd492a46f7a9d5c977088593
This commit is contained in:
committed by
copyberry
parent
2bd8727a0c
commit
6851fae57c
@@ -47,6 +47,7 @@ fn post_sampling_token_estimate_is_disabled_by_always_on_sinks() {
|
||||
.with(tracing_subscriber::fmt::layer().with_filter(codex_state::log_db::default_filter()));
|
||||
|
||||
tracing::subscriber::with_default(subscriber, || {
|
||||
tracing::callsite::rebuild_interest_cache();
|
||||
assert!(!tracing::event_enabled!(
|
||||
target: POST_SAMPLING_TOKEN_ESTIMATE_TARGET,
|
||||
tracing::Level::TRACE,
|
||||
|
||||
Reference in New Issue
Block a user