diff options
author | Ian Bull | 2010-07-12 12:32:52 +0000 |
---|---|---|
committer | Ian Bull | 2010-07-12 12:32:52 +0000 |
commit | bfcf6f0013ad4702fbd3e2a5336529aadcc59099 (patch) | |
tree | c6c0b625ea0f04ea3220ceca975979675aa63f92 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse | |
parent | f342e0982842ae9b719ec5b88dfaf46718fc5bbe (diff) | |
download | rt.equinox.p2-bfcf6f0013ad4702fbd3e2a5336529aadcc59099.tar.gz rt.equinox.p2-bfcf6f0013ad4702fbd3e2a5336529aadcc59099.tar.xz rt.equinox.p2-bfcf6f0013ad4702fbd3e2a5336529aadcc59099.zip |
bug 305099: LocalMetadataRepositoryTest#testRefreshSelfReference fails intermittently
https://bugs.eclipse.org/bugs/show_bug.cgi?id=305099
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/LocalMetadataRepositoryTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/LocalMetadataRepositoryTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/LocalMetadataRepositoryTest.java index 2bbbd356c..521aee495 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/LocalMetadataRepositoryTest.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/metadata/repository/LocalMetadataRepositoryTest.java @@ -224,6 +224,10 @@ public class LocalMetadataRepositoryTest extends AbstractProvisioningTest { IMetadataRepository repo = manager.createRepository(repoURL, "testRefreshSelfReference", IMetadataRepositoryManager.TYPE_SIMPLE_REPOSITORY, properties); repo.addReferences(Collections.singletonList(new RepositoryReference(repoURL, "testNick", IRepository.TYPE_METADATA, IRepository.NONE))); + if (!manager.isEnabled(repoURL)) { + // Enable the repo if it's not enabled. + manager.setEnabled(repoURL, true); + } final int[] callCount = new int[] {0}; final boolean[] wasEnabled = new boolean[] {false}; //add a listener to ensure we receive add events with the repository enabled |