Skip to content

Commit e2b271a

Browse files
committed
test(proxy): stabilize OCSF compatibility capture
Signed-off-by: John Myers <[email protected]>
1 parent 6d36f25 commit e2b271a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎crates/openshell-supervisor-network/src/proxy/tests/compatibility.rs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ fn representative_adapter_denials_preserve_ocsf_fields() {
171171
let subscriber = tracing_subscriber::registry().with(layer);
172172
let denial_reason = "target.example resolves to internal address 10.0.0.5";
173173
tracing::subscriber::with_default(subscriber, || {
174+
// Other parallel tests may register this callsite while no subscriber
175+
// is active. Refresh the process-wide cache after installing this
176+
// thread-local subscriber so the OCSF events cannot remain disabled.
177+
tracing::callsite::rebuild_interest_cache();
178+
174179
tokio::runtime::Builder::new_current_thread()
175180
.enable_all()
176181
.build()

0 commit comments

Comments
 (0)