Changeset 10560 in josm for trunk/test
- Timestamp:
- 2016-07-18T08:52:49+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
r10222 r10560 89 89 // Update the locally installed plugins 90 90 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); 91 94 pluginDownloadTask.run(); 95 // Restore default timeout 96 Main.pref.putInteger("socket.timeout.read", defTimeout); 92 97 assertTrue(pluginDownloadTask.getFailedPlugins().toString(), pluginDownloadTask.getFailedPlugins().isEmpty()); 93 98 assertEquals(plugins.size(), pluginDownloadTask.getDownloadedPlugins().size());
Note:
See TracChangeset
for help on using the changeset viewer.