From: forjsharp Date: Sun, 21 Sep 2014 22:30:02 +0000 (-0700) Subject: REST: BrowseServiceTest: Mitigate Stale Item Error X-Git-Tag: archiva-2.2.0~99 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4%2Fhead;p=archiva.git REST: BrowseServiceTest: Mitigate Stale Item Error --- 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 9a1dbd6ad..99cb83b5d 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 @@ -337,6 +337,8 @@ public class BrowseServiceTest public void deleteTestRepo() throws Exception { + scanRepo( TEST_REPO_ID ); + waitForScanToComplete( TEST_REPO_ID ); deleteTestRepo( TEST_REPO_ID ); } }