Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(openhuman-app): pin localhost dev fetch noise filter to shared chain

Steven Enamakel7dc3ed6aa851
diff --git a/crates/openhuman-app/src/lib_tests.rs b/crates/openhuman-app/src/lib_tests.rs
index 1522fd56a1..9bb5002a89 100644
--- a/crates/openhuman-app/src/lib_tests.rs
+++ b/crates/openhuman-app/src/lib_tests.rs
@@ -738,6 +738,16 @@ fn sentry_environment_defaults_to_production_when_unset() {
// builds (issue OPENHUMAN-TAURI-V). Tests target the pure
// `message_is_localhost_dev_fetch_noise` helper so the rule can be
// asserted without standing up a Sentry client.
+//
+// The filter now lives in embed's shared `before_send` chain, which this
+// shell installs; these tests pin that the chain still carries the
+// shell's rule, under its `localhost-dev-fetch` name.
+
+use openhuman_rpc::embed::process::sentry::message_is_localhost_dev_fetch_noise;
+
+fn event_is_localhost_dev_fetch_noise(event: &sentry::protocol::Event<'static>) -> bool {
+ openhuman_rpc::embed::process::sentry::known_noise(event) == Some("localhost-dev-fetch")
+}
#[test]
fn localhost_dev_fetch_noise_drops_vite_dev_url_1420() {