From a746721940a99b76e91bd10a2e2fa78549c9ee54 Mon Sep 17 00:00:00 2001 From: Ciprian Ciubotariu Date: Tue, 31 May 2016 20:05:29 +0300 Subject: [PATCH] Fix non-deterministic test failures archiva-rest-services tests need to wait for repo scanning to finish --- .../org/apache/archiva/rest/services/BrowseServiceTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java index 848d4b7a6..7ee34c6d9 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java @@ -69,6 +69,7 @@ public class BrowseServiceTest throws Exception { scanRepo( TEST_REPO_ID ); + waitForScanToComplete( TEST_REPO_ID ); BrowseService browseService = getBrowseService( authorizationHeader, false ); @@ -92,6 +93,7 @@ public class BrowseServiceTest try { scanRepo( TEST_REPO_ID ); + waitForScanToComplete( TEST_REPO_ID ); BrowseService browseService = getBrowseService( authorizationHeader, false ); @@ -410,6 +412,7 @@ public class BrowseServiceTest throws Exception { scanRepo( TEST_REPO_ID ); + waitForScanToComplete( TEST_REPO_ID ); BrowseService browseService = getBrowseService( authorizationHeader, false ); -- 2.39.5