- Timestamp:
- 2016-11-13T13:14:40+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r11110 r11251 35 35 */ 36 36 public class JOSMTestRules implements TestRule { 37 private int timeout = 10 * 1000;37 private int timeout = isDebugMode() ? -1 : 10 * 1000; 38 38 private TemporaryFolder josmHome; 39 39 private boolean usePreferences = false; … … 60 60 */ 61 61 public JOSMTestRules timeout(int millis) { 62 timeout = millis;62 timeout = isDebugMode() ? -1 : millis; 63 63 return this; 64 64 } … … 353 353 } 354 354 } 355 356 private boolean isDebugMode() { 357 return java.lang.management.ManagementFactory.getRuntimeMXBean(). 358 getInputArguments().toString().indexOf("-agentlib:jdwp") > 0; 359 } 355 360 }
Note:
See TracChangeset
for help on using the changeset viewer.