From: Ittay Stern Date: Thu, 12 Mar 2020 07:59:42 +0000 (+0200) Subject: Extend timeout in test JobsBrokerService X-Git-Tag: 6.0.4~10 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=0ac5f5d60d67d6812cf84eb9e4ae5e8525d959ce;hp=f31dd5a7446ad4d692d2cdb6af4eba662e3925e3;p=vid.git Extend timeout in test JobsBrokerService This resolves instability in tests, e.g.: java.lang.RuntimeException: java.util.concurrent.TimeoutException at ...JobsBrokerServiceTest.waitForFutureOptionalJob() at ...JobsBrokerServiceTest.getAlotOfJobs() Redo commit 8aff973214f44a1f4cf95e5330cb9687be1bfa76 Issue-ID: VID-433 Change-Id: Ib366d7c7ffff7ee75a78ff5be5ccd5c970c783dd Signed-off-by: Ittay Stern --- diff --git a/vid-app-common/src/test/java/org/onap/vid/services/JobsBrokerServiceTest.java b/vid-app-common/src/test/java/org/onap/vid/services/JobsBrokerServiceTest.java index 20c9d1443..db2021719 100644 --- a/vid-app-common/src/test/java/org/onap/vid/services/JobsBrokerServiceTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/services/JobsBrokerServiceTest.java @@ -115,7 +115,7 @@ public class JobsBrokerServiceTest extends AbstractTestNGSpringContextTests { private final Set threadsIds = new ConcurrentSkipListSet<>(); - private final long FEW = 500; + private final long FEW = 1000; private final String JOBS_SHOULD_MATCH = "the jobs that added and those that pulled must be the same"; private final String JOBS_PEEKED_SHOULD_MATCH = "the jobs that added and those that peeked must be the same";