Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2009-04-21 03:49:18 +0000
committerSimon Kaegi2009-04-21 03:49:18 +0000
commit61b481ce22df6c7607d70c28acc9214212be245a (patch)
tree0eb072990ed06be7dd05d9892f021f48bd855284 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine
parent80fa35485631f3bf9806aa7421923fca905d8928 (diff)
downloadrt.equinox.p2-61b481ce22df6c7607d70c28acc9214212be245a.tar.gz
rt.equinox.p2-61b481ce22df6c7607d70c28acc9214212be245a.tar.xz
rt.equinox.p2-61b481ce22df6c7607d70c28acc9214212be245a.zip
Bug 268697 ProfileMetadataRepositoryTest fails on last assert
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileMetadataRepositoryTest.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileMetadataRepositoryTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileMetadataRepositoryTest.java
index b15120e8a..af7f0a587 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileMetadataRepositoryTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileMetadataRepositoryTest.java
@@ -120,7 +120,7 @@ public class ProfileMetadataRepositoryTest extends AbstractProvisioningTest {
assertTrue(repoCollector.toCollection().containsAll(profileCollector.toCollection()));
}
- public void testDefaultAgentRepoAndBundlePoolFromProfileRepo() {
+ public void testDefaultAgentRepoAndBundlePoolFromProfileRepo() throws InterruptedException {
File testData = getTestData("0.1", "testData/sdkpatchingtest");
// /p2/org.eclipse.equinox.p2.engine/profileRegistry");
File tempFolder = getTempFolder();
@@ -160,7 +160,14 @@ public class ProfileMetadataRepositoryTest extends AbstractProvisioningTest {
assertFalse(repoCollector.isEmpty());
assertTrue(repoCollector.toCollection().containsAll(profileCollector.toCollection()));
- assertTrue(manager.contains(tempFolder.toURI()));
- assertTrue(manager.contains(defaultAgenRepositoryDirectory.toURI()));
+ int maxTries = 20;
+ int current = 0;
+ while (true) {
+ if (manager.contains(tempFolder.toURI()) && manager.contains(defaultAgenRepositoryDirectory.toURI()))
+ break;
+ if (++current == maxTries)
+ fail("profile artifact repos not added");
+ Thread.sleep(100);
+ }
}
}

Back to the top