Skip to content

Commit 43ae1f1

Browse files
committed
Add timeout to Test_org_eclipse_swt_custom_BusyIndicator
It seem recently Test_org_eclipse_swt_custom_BusyIndicator is hang in the build forever sometimes. This now adds a timeout so we can see if it is really hanging there or somewhere else.
1 parent 8b67970 commit 43ae1f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_BusyIndicator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@
3030
import org.eclipse.swt.widgets.Display;
3131
import org.eclipse.swt.widgets.Shell;
3232
import org.junit.jupiter.api.Test;
33+
import org.junit.jupiter.api.Timeout;
3334

3435
public class Test_org_eclipse_swt_custom_BusyIndicator {
3536

3637
@Test
38+
@Timeout(value = 30)
3739
public void testShowWhile() {
3840
Shell shell = new Shell();
3941
Display display = shell.getDisplay();
@@ -91,6 +93,7 @@ public void testShowWhile() {
9193
}
9294

9395
@Test
96+
@Timeout(value = 30)
9497
public void testShowWhileWithFuture() {
9598
ExecutorService executor = Executors.newSingleThreadExecutor();
9699
try {

0 commit comments

Comments
 (0)