diff options
author | Harald Musum <musum@yahooinc.com> | 2022-08-31 09:49:04 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2022-08-31 09:50:04 +0200 |
commit | bb620d0786395cac68fc7e8fda2af70428434b82 (patch) | |
tree | 1e15c34749bfec00f84027b5ba4b3c9ff17e6513 /clustercontroller-core | |
parent | a15e7378ab1635fbbacf10151c44581db95c91d3 (diff) |
Make sure to handle InterruptedException, otherwise tests might run forever
Diffstat (limited to 'clustercontroller-core')
-rw-r--r-- | clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/testutils/Waiter.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/testutils/Waiter.java b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/testutils/Waiter.java index 7960cd7c9d2..e4df6f31987 100644 --- a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/testutils/Waiter.java +++ b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/testutils/Waiter.java @@ -117,6 +117,7 @@ public interface Waiter { if (allowWait) data.getMonitor().wait(wt == null ? WaitTask.defaultTaskFrequencyMillis : Math.min(wt.getWaitTaskFrequencyInMillis(), timeLeft.toMillis())); } catch (InterruptedException e) { + throw new RuntimeException(e); } } } |