Skip to content

Commit a98c690

Browse files
committed
Increase timeout for RMI service being registered in Clipboard test
The test failed to get the RMI within 1 second on macOS on GitHub actions one time, so increase the timeout here. Fixup for #2541
1 parent 34becc0 commit a98c690

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import static org.junit.jupiter.api.Assertions.assertEquals;
1414
import static org.junit.jupiter.api.Assertions.assertNotEquals;
15+
import static org.junit.jupiter.api.Assertions.assertNotNull;
1516
import static org.junit.jupiter.api.Assertions.assertNull;
1617
import static org.junit.jupiter.api.Assertions.assertTrue;
1718

@@ -168,7 +169,7 @@ private void startRemoteClipboardCommands() throws Exception {
168169
});
169170
assertNotEquals(0, port);
170171
Registry reg = LocateRegistry.getRegistry("127.0.0.1", port);
171-
long stopTime = System.currentTimeMillis() + 1000;
172+
long stopTime = System.currentTimeMillis() + 10000;
172173
do {
173174
try {
174175
remote = (ClipboardCommands) reg.lookup(ClipboardCommands.ID);
@@ -177,6 +178,7 @@ private void startRemoteClipboardCommands() throws Exception {
177178
// try again because the remote app probably hasn't bound yet
178179
}
179180
} while (System.currentTimeMillis() < stopTime);
181+
assertNotNull(remote);
180182

181183
// Run a no-op on the Swing event loop so that we know it is idle
182184
// and we can continue startup

0 commit comments

Comments
 (0)