mirror of https://github.com/apache/archiva.git
Fix non-deterministic test failures
archiva-rest-services tests need to wait for repo scanning to finish
This commit is contained in:
parent
e2482432b2
commit
a746721940
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue