Changeset 19142 in josm


Ignore:
Timestamp:
2024-07-15T22:13:26+02:00 (4 months ago)
Author:
taylor.smock
Message:

Fix OAuth2 tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/oauth/OAuth20AuthorizationTest.java

    r19050 r19142  
    2323import org.openstreetmap.josm.data.oauth.osm.OsmScopes;
    2424import org.openstreetmap.josm.data.preferences.JosmUrls;
     25import org.openstreetmap.josm.gui.util.GuiHelper;
    2526import org.openstreetmap.josm.io.OsmApi;
    2627import org.openstreetmap.josm.io.remotecontrol.RemoteControl;
     
    191192                wireMockRuntimeInfo.getHttpBaseUrl() + "/oauth2", wireMockRuntimeInfo.getHttpBaseUrl() + "/api",
    192193                parameters.getRedirectUri()), consumer::set, OsmScopes.read_gpx);
     194        GuiHelper.runInEDTAndWait(() -> { /* Sync EDT thread */ });
    193195        assertEquals(1, OpenBrowserMocker.getCalledURIs().size());
    194196        final URL url = assertDoesNotThrow(() -> OpenBrowserMocker.getCalledURIs().get(0).toURL());
Note: See TracChangeset for help on using the changeset viewer.