Skip to content

Commit efe6505

Browse files
snev68sunfishcode
authored andcommitted
Add an #[ignore] to the instant_duration_since_panic test.
As of rust-lang/rust#89926, this test behaves differently. We support rust versions before and after this change, so both behaviors are possible, so just disable this test for now.
1 parent b5245f9 commit efe6505

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/time.rs

+6
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,14 @@ fn instant_math_is_associative() {
7878
assert_eq!((now + offset) - now, (now - now) + offset);
7979
}
8080

81+
// Ignore this test for now. As of rust-lang/rust#89926, Rust no longer panics
82+
// on this test.
83+
//
84+
// TODO: Once our MSRV no longer contains the old behavior, we should update
85+
// to the latest version of this test.
8186
#[test]
8287
#[should_panic]
88+
#[ignore]
8389
fn instant_duration_since_panic() {
8490
let clock = MonotonicClock::new(ambient_authority());
8591
let a = clock.now();

0 commit comments

Comments
 (0)