diff options
author | Olivier Lamy <olamy@apache.org> | 2013-11-14 03:11:06 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-11-14 03:11:06 +0000 |
commit | c230bdbe4102ad02eab38599da4f8f1545083fa4 (patch) | |
tree | 6c392b53a0d66e0ec1d1bb5a344073754eb999b5 /archiva-modules/archiva-web/archiva-web-common/src | |
parent | d19a30234450201cb36c4ae475299329f467b996 (diff) | |
download | archiva-c230bdbe4102ad02eab38599da4f8f1545083fa4.tar.gz archiva-c230bdbe4102ad02eab38599da4f8f1545083fa4.zip |
add a service to know repositories ids running a remote download
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1541794 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common/src')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexNonDefaultPathTest.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexNonDefaultPathTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexNonDefaultPathTest.java index 4eeb9ebcc..f7aa3dfd6 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexNonDefaultPathTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/DownloadMergedIndexNonDefaultPathTest.java @@ -56,7 +56,7 @@ public class DownloadMergedIndexNonDefaultPathTest public static void setAppServerBase() { previousAppServerBase = System.getProperty( "appserver.base" ); - System.setProperty( "appserver.base", "target/" + DownloadMergedIndexNonDefaultPathTest.class.getName() ); + System.setProperty( "appserver.base", System.getProperty( "basedir" ) + "/target/" + DownloadMergedIndexNonDefaultPathTest.class.getName() ); } @AfterClass @@ -175,11 +175,17 @@ public class DownloadMergedIndexNonDefaultPathTest repositoriesService.scheduleDownloadRemoteIndex( remoteId, true, true ); // wait a bit + /* timeout = 20000; while ( timeout > 0 ) { Thread.sleep( 500 ); timeout -= 500; + }*/ + // wait the end + while ( !repositoriesService.getRunningRemoteDownloadIds().getStrings().isEmpty() ) + { + Thread.sleep( 500 ); } SearchService searchService = getSearchService(); |