From b4cc6bb82edf3bb909c21518745f11c9be347b78 Mon Sep 17 00:00:00 2001 From: sribich Date: Mon, 21 Aug 2023 03:25:06 -0400 Subject: [PATCH] fix: support new panic message format in rust 1.73 --- crates/cli/tests/run_rust_test.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/cli/tests/run_rust_test.rs b/crates/cli/tests/run_rust_test.rs index db9e7ef936e..bf5bddcca13 100644 --- a/crates/cli/tests/run_rust_test.rs +++ b/crates/cli/tests/run_rust_test.rs @@ -73,7 +73,11 @@ fn handles_panic() { let output = assert.output(); - assert!(predicate::str::contains("thread 'main' panicked at 'Oops'").eval(&output)); + assert!( + predicate::str::is_match("thread 'main' panicked at(?s:.)*Oops") + .unwrap() + .eval(&output) + ); } #[test]