summaryrefslogtreecommitdiffstats
path: root/uitest-common
diff options
context:
space:
mode:
Diffstat (limited to 'uitest-common')
-rw-r--r--uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java
index dbfda17bfd..4985bc7e93 100644
--- a/uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java
+++ b/uitest-common/src/main/java/com/vaadin/tests/tb3/AbstractTB3Test.java
@@ -786,12 +786,15 @@ public abstract class AbstractTB3Test extends ParallelTest {
*
* @param timeoutMillis
* Number of ms to wait
- * @throws InterruptedException
*/
- protected void sleep(int timeoutMillis) throws InterruptedException {
+ protected void sleep(int timeoutMillis) {
while (timeoutMillis > 0) {
int d = Math.min(BROWSER_TIMEOUT_IN_MS, timeoutMillis);
- Thread.sleep(d);
+ try {
+ Thread.sleep(d);
+ } catch (InterruptedException e) {
+ throw new RuntimeException(e);
+ }
timeoutMillis -= d;
// Do something to keep the connection alive