From 74331e15fd06785b9d5a08261fbc2b8d16046a16 Mon Sep 17 00:00:00 2001 From: Hayden Stainsby Date: Wed, 10 Apr 2024 15:04:20 +0200 Subject: [PATCH] test(subscriber): remove very flaky tests (#544) We have identified that some of the `console-subscriber` integration tests are flaky (#473). This appears to be a result of the following issue in `tracing` tokio-rs/tracing#2743. Flaky tests are really worse than no tests. So these tests will be removed until the flakiness can be fixed. --- console-subscriber/tests/wake.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/console-subscriber/tests/wake.rs b/console-subscriber/tests/wake.rs index 0589f17bb..65fa196c8 100644 --- a/console-subscriber/tests/wake.rs +++ b/console-subscriber/tests/wake.rs @@ -4,35 +4,6 @@ use std::time::Duration; use support::{assert_task, ExpectedTask}; use tokio::time::sleep; -#[test] -fn sleep_wakes() { - let expected_task = ExpectedTask::default() - .match_default_name() - .expect_wakes(1) - .expect_self_wakes(0); - - let future = async { - sleep(Duration::ZERO).await; - }; - - assert_task(expected_task, future); -} - -#[test] -fn double_sleep_wakes() { - let expected_task = ExpectedTask::default() - .match_default_name() - .expect_wakes(2) - .expect_self_wakes(0); - - let future = async { - sleep(Duration::ZERO).await; - sleep(Duration::ZERO).await; - }; - - assert_task(expected_task, future); -} - #[test] fn self_wake() { let expected_task = ExpectedTask::default()