Skip to content

Commit

Permalink
Improve wording.
Browse files Browse the repository at this point in the history
Hanged is a dodgy expression.

Fixes SeleniumHQ#7494
  • Loading branch information
utamas committed Oct 16, 2019
1 parent 797f53f commit a171c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public <V> V until(Function<? super T, V> isTrue) {
} catch (InterruptedException cause) {
throw new RuntimeException(cause);
} catch (java.util.concurrent.TimeoutException cause) {
throw new TimeoutException("Supplied function might have hanged", cause);
throw new TimeoutException("Supplied function might have stalled", cause);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public void timeoutWhenConditionMakesNoProgress() {

assertThatExceptionOfType(org.openqa.selenium.TimeoutException.class)
.isThrownBy(() -> wait.until(mockCondition))
.satisfies(actual -> assertThat(actual.getMessage()).startsWith("Supplied function might have hanged"));
.satisfies(actual -> assertThat(actual.getMessage()).startsWith("Supplied function might have stalled"));
}

private static class TestException extends RuntimeException {
Expand Down

0 comments on commit a171c9b

Please sign in to comment.