diff options
author | Ciprian Ciubotariu <cheepeero@gmx.net> | 2016-05-31 20:05:29 +0300 |
---|---|---|
committer | Ciprian Ciubotariu <cheepeero@gmx.net> | 2016-05-31 20:05:29 +0300 |
commit | a746721940a99b76e91bd10a2e2fa78549c9ee54 (patch) | |
tree | aa741fce870130fd73dea08bd6c6fea861ca006b /archiva-modules | |
parent | e2482432b2de63f63ef111558a90d22068836496 (diff) | |
download | archiva-a746721940a99b76e91bd10a2e2fa78549c9ee54.tar.gz archiva-a746721940a99b76e91bd10a2e2fa78549c9ee54.zip |
Fix non-deterministic test failures
archiva-rest-services tests need to wait for repo scanning to finish
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 ); |