Fix non-deterministic test failures

archiva-rest-services tests need to wait for repo scanning to finish
This commit is contained in:
Ciprian Ciubotariu 2016-05-31 20:05:29 +03:00
parent e2482432b2
commit a746721940
1 changed files with 3 additions and 0 deletions

View 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 );