From 0802b78e694c597748bd4cfa82491178508ab2d0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 22 Feb 2022 12:33:35 -0800 Subject: [PATCH] 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. --- tests/time.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/time.rs b/tests/time.rs index 17cd39b6..efc03281 100644 --- a/tests/time.rs +++ b/tests/time.rs @@ -78,8 +78,14 @@ fn instant_math_is_associative() { assert_eq!((now + offset) - now, (now - now) + offset); } +// Ignore this test for now. As of rust-lang/rust#89926, Rust no longer panics +// on this test. +// +// TODO: Once our MSRV no longer contains the old behavior, we should update +// to the latest version of this test. #[test] #[should_panic] +#[ignore] fn instant_duration_since_panic() { let clock = MonotonicClock::new(ambient_authority()); let a = clock.now();