chore(rust/telemetry): remove a test that is flaky when Sentry is down (#7079)

They had an incident today that caused our CI to start failing
https://status.sentry.io/incidents/rqfy3wcbkgl5
e.g.
https://github.com/firezone/firezone/actions/runs/11372533569/job/31637085363
This commit is contained in:
Reactor Scram
2024-10-16 20:21:47 -05:00
committed by GitHub
parent af7f2f2ce7
commit 03c0325a0b

View File

@@ -110,23 +110,6 @@ mod tests {
// To avoid problems with global mutable state, we run unrelated tests in the same test case.
#[test]
fn sentry() {
// Test this flush problem
{
let telemetry = sentry::init((
HEADLESS_DSN.0,
sentry::ClientOptions {
release: sentry::release_name!(),
traces_sample_rate: 1.0,
..Default::default()
},
));
sentry::start_session();
sentry::end_session();
// `flush`'s return value is flipped from the docs
// <https://github.com/getsentry/sentry-rust/issues/677>
assert!(!telemetry.flush(Some(Duration::from_secs(5))));
}
// Smoke-test Sentry itself by turning it on and off a couple times
{
let tele = Telemetry::default();