Skip to content

Commit 60a5562

Browse files
committed
test: relax assertions of panic message (again)
1 parent 3561627 commit 60a5562

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/testsuite/bench.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ fn cargo_bench_failing_test() {
314314
[RUNNING] [..] (target/release/deps/foo-[..][EXE])",
315315
)
316316
.with_stdout_contains("[..]thread '[..]' panicked at[..]")
317-
.with_stdout_contains("[..]assertion failed[..]")
318-
.with_stdout_contains("[..]left: `\"hello\"`[..]")
319-
.with_stdout_contains("[..]right: `\"nope\"`[..]")
317+
.with_stdout_contains("[..]assertion [..]failed[..]")
318+
.with_stdout_contains("[..]left: [..]\"hello\"[..]")
319+
.with_stdout_contains("[..]right: [..]\"nope\"[..]")
320320
.with_stdout_contains("[..]src/main.rs:15[..]")
321321
.with_status(101)
322322
.run();

tests/testsuite/test.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ failures:
389389
---- test_hello stdout ----
390390
[..]thread '[..]' panicked at [..]",
391391
)
392-
.with_stdout_contains("[..]assertion failed[..]")
393-
.with_stdout_contains("[..]`(left == right)`[..]")
394-
.with_stdout_contains("[..]left: `\"hello\"`,[..]")
395-
.with_stdout_contains("[..]right: `\"nope\"`[..]")
392+
.with_stdout_contains("[..]assertion [..]failed[..]")
393+
.with_stdout_contains("[..]left == right[..]")
394+
.with_stdout_contains("[..]left: [..]\"hello\"[..]")
395+
.with_stdout_contains("[..]right: [..]\"nope\"[..]")
396396
.with_stdout_contains("[..]src/main.rs:12[..]")
397397
.with_stdout_contains(
398398
"\

0 commit comments

Comments
 (0)