Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Print test name only once on timeout #82349

Merged
merged 1 commit into from
Feb 21, 2021

Commits on Feb 21, 2021

  1. 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
    ```
    tmiasko committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    88753ce View commit details
    Browse the repository at this point in the history