Changeset 17885 in josm


Ignore:
Timestamp:
2021-05-12T23:31:51+02:00 (3 years ago)
Author:
simon04
Message:

JOSMFixture: fix "Defaults for osm-server.url differ: https://api.openstreetmap.org/api !="

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java

    r17275 r17885  
    115115        pref.enableSaveOnPut(false);
    116116        I18n.init();
    117         // initialize the plaform hook, and
     117        // initialize the platform hook, and
    118118        // call the really early hook before we anything else
    119119        PlatformManager.getPlatform().preStartupHook();
     
    121121        Logging.setLogLevel(Logging.LEVEL_INFO);
    122122        pref.init(false);
    123         String url = Config.getPref().get("osm-server.url");
     123        String url = OsmApi.getOsmApi().getServerUrl();
    124124        if (url == null || url.isEmpty() || isProductionApiUrl(url)) {
    125125            Config.getPref().put("osm-server.url", "https://api06.dev.openstreetmap.org/api");
Note: See TracChangeset for help on using the changeset viewer.