Skip to content

Commit

Permalink
Temporarily disable ref_wake_same test
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Feb 26, 2024
1 parent d4fb411 commit 42c2ab0
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions futures/tests/task_arc_wake.rs
Expand Up @@ -44,17 +44,18 @@ fn create_from_arc() {
assert_eq!(1, Arc::strong_count(&some_w));
}

#[test]
fn ref_wake_same() {
let some_w = Arc::new(CountingWaker::new());

let w1: Waker = task::waker(some_w.clone());
let w2 = task::waker_ref(&some_w);
let w3 = w2.clone();

assert!(w1.will_wake(&w2));
assert!(w2.will_wake(&w3));
}
// TODO: rustc regression: https://github.com/rust-lang/rust/issues/121600
// #[test]
// fn ref_wake_same() {
// let some_w = Arc::new(CountingWaker::new());
//
// let w1: Waker = task::waker(some_w.clone());
// let w2 = task::waker_ref(&some_w);
// let w3 = w2.clone();
//
// assert!(w1.will_wake(&w2));
// assert!(w2.will_wake(&w3));
// }

#[test]
fn proper_refcount_on_wake_panic() {
Expand Down

0 comments on commit 42c2ab0

Please sign in to comment.