Changeset 18602 in josm
- Timestamp:
- 2022-11-22T14:01:54+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/MainApplicationTest.java
r18598 r18602 36 36 import mockit.Mock; 37 37 import mockit.MockUp; 38 import org.awaitility.Awaitility; 39 import org.awaitility.Durations; 38 40 import org.junit.jupiter.api.Test; 39 41 import org.junit.jupiter.api.extension.RegisterExtension; … … 222 224 assertDoesNotThrow(MainApplication::setupUIManager); 223 225 226 /* We cannot sync on the worker or EDT threads since the bug report handler makes a new thread */ 227 Awaitility.await().atMost(Durations.ONE_HUNDRED_MILLISECONDS) 228 .pollDelay(Durations.ONE_MILLISECOND) 229 .until(() -> !BugReportQueue.getInstance().exceptionHandlingInProgress()); 224 230 assertNotNull(exceptionAtomicReference.get()); 225 231 assertTrue(exceptionAtomicReference.get() instanceof UnsupportedOperationException);
Note:
See TracChangeset
for help on using the changeset viewer.