]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #82349 - tmiasko:pretty-test-timeout, r=Mark-Simulacrum
authorYuki Okushi <huyuumi.dev@gmail.com>
Sun, 21 Feb 2021 06:26:50 +0000 (15:26 +0900)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 06:26:50 +0000 (15:26 +0900)
test: Print test name only once on timeout

Pretty formatter when using multiple test threads displays test name twice on
timeout event. This implicitly suggest that those are two different events,
while in fact they are always printed together.

Print test name only once.

Before:

```
running 3 tests
test src/lib.rs - c (line 16) ... ok
test src/lib.rs - a (line 3) ... ok
test src/lib.rs - b (line 9) ... test src/lib.rs - b (line 9) has been running for over 60 seconds
test src/lib.rs - b (line 9) ... ok
```

After:

```
running 3 tests
test src/lib.rs - c (line 16) ... ok
test src/lib.rs - a (line 3) ... ok
test src/lib.rs - b (line 9) has been running for over 60 seconds
test src/lib.rs - b (line 9) ... ok
```


Trivial merge