Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;

Expand Down Expand Up @@ -168,7 +169,7 @@ private void startRemoteClipboardCommands() throws Exception {
});
assertNotEquals(0, port);
Registry reg = LocateRegistry.getRegistry("127.0.0.1", port);
long stopTime = System.currentTimeMillis() + 1000;
long stopTime = System.currentTimeMillis() + 10000;
do {
try {
remote = (ClipboardCommands) reg.lookup(ClipboardCommands.ID);
Expand All @@ -177,6 +178,7 @@ private void startRemoteClipboardCommands() throws Exception {
// try again because the remote app probably hasn't bound yet
}
} while (System.currentTimeMillis() < stopTime);
assertNotNull(remote);

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