diff --git a/runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/harness/TestBarrier2.java b/runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/harness/TestBarrier2.java index 2344b18b236..80e882a09ff 100644 --- a/runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/harness/TestBarrier2.java +++ b/runtime/tests/org.eclipse.core.tests.harness/src/org/eclipse/core/tests/harness/TestBarrier2.java @@ -144,13 +144,17 @@ private static String getStatus(int status) { } } + /** + * Blocks the current thread until the first variable is set to the given value. + * Times out after a predefined period of 10sec to avoid hanging tests + */ public static void waitForStatus(AtomicIntegerArray location, int status) { - doWaitForStatus(location, 0, status, 1000); + doWaitForStatus(location, 0, status, 10000); } /** - * Blocks the current thread until the given variable is set to the given - * value Times out after a predefined period to avoid hanging tests + * Blocks the current thread until the given variable is set to the given value. + * Times out after a predefined period of 10sec to avoid hanging tests */ public static void waitForStatus(AtomicIntegerArray location, int index, int status) { doWaitForStatus(location, index, status, 10000);