Skip to content

Commit

Permalink
Better name for test that stops statement
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbirkner committed Jan 20, 2021
1 parent 527f3a3 commit b83dc2e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ public void throwsExceptionWithTimeoutValueAndTimeUnitSet() {
}

@Test
public void stopEndlessStatement() throws Throwable {
public void statementThatCanBeInterruptedIsStoppedAfterTimeout() throws Throwable {
// RunForASecond can be interrupted because it uses Thread.sleep which
// can be interrupted.
RunForASecond runForASecond = new RunForASecond();
assertThrows(
TestTimedOutException.class,
Expand Down

0 comments on commit b83dc2e

Please sign in to comment.