Skip to content

The agent that grows with you

test(observability): wait for the export worker before reading the store in the timeout metrics test

etherneta7da9602db85
diff --git a/tests/hermes_cli/test_relay_shared_metrics_runtime.py b/tests/hermes_cli/test_relay_shared_metrics_runtime.py
index a0eca6cad41..97c66e26953 100644
--- a/tests/hermes_cli/test_relay_shared_metrics_runtime.py
+++ b/tests/hermes_cli/test_relay_shared_metrics_runtime.py
@@ -957,6 +957,7 @@ def test_real_binding_aggregates_tool_and_approval_timeouts(
)
lifecycle.finalize_session(session_id=base["session_id"])
+ _join_export_workers()
root = tmp_path / "hermes-home" / "telemetry" / "shared_metrics"
snapshot = SharedMetricsStore(
root / "metrics.sqlite3",