Skip to content

Commit 190e509

Browse files
committed
Stabilize tests
1 parent b58158f commit 190e509

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/eu/openanalytics/containerproxy/backend/dispatcher/proxysharing/ProxySharingScaler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,12 @@ public Long getNumClaimedSeats() {
646646
}
647647

648648
public void stopAll() {
649+
executor.shutdown();
650+
try {
651+
executor.awaitTermination(3, TimeUnit.MINUTES);
652+
} catch (InterruptedException e) {
653+
throw new RuntimeException(e);
654+
}
649655
for (DelegateProxy delegateProxy : delegateProxyStore.getAllDelegateProxies()) {
650656
containerBackend.stopProxy(delegateProxy.getProxy());
651657
}

0 commit comments

Comments
 (0)