Skip to content

Commit

Permalink
[Java] Clear interrupted status on the worker thread before starting …
Browse files Browse the repository at this point in the history
…next test to prevent the domino effect.
  • Loading branch information
vyazelenko committed Jan 3, 2024
1 parent 4b4e17f commit bb7ca6d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public void showAllErrors()

public void beforeEach(final ExtensionContext context)
{
Thread.interrupted(); // clean the interrupted flag so that it does not affect the next test
startTimeNs = System.nanoTime();
}

Expand Down

0 comments on commit bb7ca6d

Please sign in to comment.