Index: trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuth20AuthorizationTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuth20AuthorizationTest.java	(revision 19141)
+++ trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuth20AuthorizationTest.java	(revision 19142)
@@ -23,4 +23,5 @@
 import org.openstreetmap.josm.data.oauth.osm.OsmScopes;
 import org.openstreetmap.josm.data.preferences.JosmUrls;
+import org.openstreetmap.josm.gui.util.GuiHelper;
 import org.openstreetmap.josm.io.OsmApi;
 import org.openstreetmap.josm.io.remotecontrol.RemoteControl;
@@ -191,4 +192,5 @@
                 wireMockRuntimeInfo.getHttpBaseUrl() + "/oauth2", wireMockRuntimeInfo.getHttpBaseUrl() + "/api",
                 parameters.getRedirectUri()), consumer::set, OsmScopes.read_gpx);
+        GuiHelper.runInEDTAndWait(() -> { /* Sync EDT thread */ });
         assertEquals(1, OpenBrowserMocker.getCalledURIs().size());
         final URL url = assertDoesNotThrow(() -> OpenBrowserMocker.getCalledURIs().get(0).toURL());
