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:
Tamir Duberstein
2026-08-13 16:08:34 +00:00
committed by copyberry
parent 2bd8727a0c
commit 6851fae57c
+1
View File
@@ -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,