Skip to content

Commit

Permalink
test(subscriber): remove very flaky tests (#544)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hds committed Apr 10, 2024
1 parent ff22678 commit 74331e1
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions console-subscriber/tests/wake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 74331e1

Please sign in to comment.