Changeset 10560 in josm


Ignore:
Timestamp:
2016-07-18T08:52:49+02:00 (8 years ago)
Author:
Don-vip
Message:

Increase default timeout to avoid random network errors on big jar files in plugin download integration test

File:
1 edited

Legend:

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

    r10222 r10560  
    8989        // Update the locally installed plugins
    9090        PluginDownloadTask pluginDownloadTask = new PluginDownloadTask(NullProgressMonitor.INSTANCE, plugins, null);
     91        // Increase default timeout to avoid random network errors on big jar files
     92        int defTimeout = Main.pref.getInteger("socket.timeout.read", 30);
     93        Main.pref.putInteger("socket.timeout.read", 2 * defTimeout);
    9194        pluginDownloadTask.run();
     95        // Restore default timeout
     96        Main.pref.putInteger("socket.timeout.read", defTimeout);
    9297        assertTrue(pluginDownloadTask.getFailedPlugins().toString(), pluginDownloadTask.getFailedPlugins().isEmpty());
    9398        assertEquals(plugins.size(), pluginDownloadTask.getDownloadedPlugins().size());
Note: See TracChangeset for help on using the changeset viewer.