From 0ac5f5d60d67d6812cf84eb9e4ae5e8525d959ce Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Thu, 12 Mar 2020 09:59:42 +0200 Subject: 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 --- .../src/test/java/org/onap/vid/services/JobsBrokerServiceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vid-app-common/src/test/java') 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"; -- cgit 1.2.3-korg