Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2010-04-02 14:21:17 -0400
committerThomas Watson2010-04-02 14:21:17 -0400
commitd74c4a3a35c2087d082216247d178da875d803b6 (patch)
tree628a77fce10b55e409247db5fc3bfd770a9e5a7b
parent1fe347c28b9a502fc86d64cb59e0de92b465799e (diff)
downloadrt.equinox.framework-d74c4a3a35c2087d082216247d178da875d803b6.tar.gz
rt.equinox.framework-d74c4a3a35c2087d082216247d178da875d803b6.tar.xz
rt.equinox.framework-d74c4a3a35c2087d082216247d178da875d803b6.zip
Bug 300820 - Failure in testBug289719 on I20100125-0800 buildv20100405
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/PackageAdminBundleTests.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/PackageAdminBundleTests.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/PackageAdminBundleTests.java
index de074ba2f..70f3c0e83 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/PackageAdminBundleTests.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/PackageAdminBundleTests.java
@@ -222,6 +222,8 @@ public class PackageAdminBundleTests extends AbstractBundleTests {
BundleEvent[] expectedEvents = new BundleEvent[] {new BundleEvent(BundleEvent.STOPPING, bug259903a), new BundleEvent(BundleEvent.STOPPED, bug259903a), new BundleEvent(BundleEvent.STOPPING, bug259903b), new BundleEvent(BundleEvent.STOPPED, bug259903b), new BundleEvent(BundleEvent.STOPPING, bug259903c), new BundleEvent(BundleEvent.STOPPED, bug259903c), new BundleEvent(BundleEvent.UNRESOLVED, bug259903a), new BundleEvent(BundleEvent.UNRESOLVED, bug259903b), new BundleEvent(BundleEvent.UNRESOLVED, bug259903c), new BundleEvent(BundleEvent.RESOLVED, bug259903c), new BundleEvent(BundleEvent.RESOLVED, bug259903b), new BundleEvent(BundleEvent.RESOLVED, bug259903a), new BundleEvent(BundleEvent.STARTING, bug259903c), new BundleEvent(BundleEvent.STARTED, bug259903c),
new BundleEvent(BundleEvent.STARTING, bug259903b), new BundleEvent(BundleEvent.STARTED, bug259903b), new BundleEvent(BundleEvent.STARTING, bug259903a), new BundleEvent(BundleEvent.STARTED, bug259903a)};
testListener.setExpectedEvents(expectedEvents);
+ // add a small delay to ensure the async bundle start-level changes above are done (bug 300820)
+ Thread.sleep(500);
installer.refreshPackages(new Bundle[] {bug259903a});
Throwable[] results = testListener.getFailures();
if (results.length > 0)
@@ -233,6 +235,8 @@ public class PackageAdminBundleTests extends AbstractBundleTests {
installer.getStartLevel().setBundleStartLevel(bug259903c, 4);
installer.getStartLevel().setBundleStartLevel(bug259903b, 4);
installer.getStartLevel().setBundleStartLevel(bug259903a, 4);
+ // add a small delay to ensure the async bundle start-level changes above are done (bug 300820)
+ Thread.sleep(500);
installer.refreshPackages(new Bundle[] {bug259903a});
results = testListener.getFailures();
if (results.length > 0)

Back to the top