Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Refresh tracing interest in the token estimate test (#38400)

Tamir Duberstein6851fae57cf7
diff --git a/codex-rs/core/src/session/turn_tests.rs b/codex-rs/core/src/session/turn_tests.rs
index 10043b0dc7..d628f601f8 100644
--- a/codex-rs/core/src/session/turn_tests.rs
+++ b/codex-rs/core/src/session/turn_tests.rs
@@ -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,