]> source.dussan.org Git - archiva.git/commitdiff
Fix non-deterministic test failures 21/head
authorCiprian Ciubotariu <cheepeero@gmx.net>
Tue, 31 May 2016 17:05:29 +0000 (20:05 +0300)
committerCiprian Ciubotariu <cheepeero@gmx.net>
Tue, 31 May 2016 17:05:29 +0000 (20:05 +0300)
archiva-rest-services tests need to wait for repo scanning to finish

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/BrowseServiceTest.java

index 848d4b7a62c23f18c993acadbbf017baee15a0e7..7ee34c6d9f76acb82dcae0449bee146a34e47356 100644 (file)
@@ -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 );