Skip to content

Commit 6a2e613

Browse files
committed
Use place holder for main thread name in tests
1 parent 04b7db6 commit 6a2e613

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ test bench_hello ... ")
187187
.with_stderr_contains(format!("\
188188
[COMPILING] foo v0.5.0 ({})
189189
[RUNNING] target[..]release[..]foo-[..]
190-
thread 'main' panicked at 'assertion failed: \
190+
thread '[..]' panicked at 'assertion failed: \
191191
`(left == right)` (left: \
192192
`\"hello\"`, right: `\"nope\"`)', src[..]foo.rs:14
193193
[..]

tests/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ fn reports_unsuccessful_subcommand_result() {
715715
execs().with_status(0).with_stdout_contains(" fail\n"));
716716
assert_that(cargo_process("fail"),
717717
execs().with_status(101).with_stderr_contains("\
718-
thread 'main' panicked at 'explicit panic', [..]
718+
thread '[..]' panicked at 'explicit panic', [..]
719719
"));
720720
}
721721

0 commit comments

Comments
 (0)