mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 12:00:04 +02:00
Tests - updated test harness to not log the default timeout value
This commit is contained in:
parent
4d728abc71
commit
df2b59c96e
1 changed files with 8 additions and 4 deletions
|
@ -60,17 +60,21 @@ public class ConcurrentTestExceptionStatement extends Statement {
|
|||
}
|
||||
|
||||
private long getTestTimeout() {
|
||||
String timeoutString =
|
||||
System.getProperty(TEST_TIMEOUT_MILLIS_PROPERTY, Long.toString(TIMEOUT_MILLIS));
|
||||
String timeoutOverrideString =
|
||||
System.getProperty(TEST_TIMEOUT_MILLIS_PROPERTY, null);
|
||||
if (timeoutOverrideString == null) {
|
||||
return TIMEOUT_MILLIS;
|
||||
}
|
||||
|
||||
try {
|
||||
long timeout = Long.parseLong(timeoutString);
|
||||
long timeout = Long.parseLong(timeoutOverrideString);
|
||||
Msg.info(this, "Using test timeout override value " + timeout + "ms");
|
||||
return timeout;
|
||||
}
|
||||
catch (NumberFormatException e) {
|
||||
Msg.error(this,
|
||||
"Unable to parse " + TEST_TIMEOUT_MILLIS_PROPERTY + " Long value '" +
|
||||
timeoutString + "'");
|
||||
timeoutOverrideString + "'");
|
||||
}
|
||||
return TIMEOUT_MILLIS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue