Skip to content

Commit 9b2da60

Browse files
committed
[java] Fixing an old test in WebDriverBackedSeleniumLargeTest
1 parent ea41b75 commit 9b2da60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/test/com/thoughtworks/selenium/webdriven/WebDriverBackedSeleniumLargeTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ public void testCallingStopThenSleepDoesNotCauseAnExceptionToBeThrown() {
7070
selenium.stop();
7171

7272
try {
73-
// Now schedule a command that caues "interrupt" to be thrown internally.
73+
// Now schedule a command that causes "interrupt" to be thrown internally.
7474
selenium.isElementPresent("name=q");
7575
fail("This test should have failed");
76-
} catch (NullPointerException expected) {
76+
} catch (NullPointerException | IllegalStateException expected) {
7777
// This is the exception thrown by selenium 1. We should throw the same
7878
// one
79+
// IllegalStateException is what the timer throws when it has been stopped
7980
}
8081

8182
try {

0 commit comments

Comments
 (0)