Skip to content

Commit

Permalink
Adding a test for the fixed OkHttp issue
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jul 11, 2018
1 parent 8096ef7 commit 96b8cc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions java/client/test/org/openqa/selenium/SessionHandlingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public void callingAnyOperationAfterQuitShouldThrowAnException() {
assertThat(t, instanceOf(NoSuchSessionException.class));
}

@NoDriverAfterTest
@Test
public void shouldContinueAfterSleep() {
sleepTight(10000);
driver.getWindowHandle(); // should not throw
}

private void sleepTight(long duration) {
try {
Thread.sleep(duration);
Expand Down

0 comments on commit 96b8cc5

Please sign in to comment.