diff options
author | 2017-12-15 12:58:52 -0800 | |
---|---|---|
committer | 2017-12-15 13:00:37 -0800 | |
commit | 39ff208b0e6ee18f4d684db458e8599f60e08dd4 (patch) | |
tree | 2b73dd577c0200829d44232007409091da96507e /src/test/java/com | |
parent | 70c2be189c9c0021f7c424c7399f8bdecc579b4e (diff) |
In LocalSpawnRunnerTest, be more generous with the expected wall time upper bound (because of interference).
RELNOTES: None.
PiperOrigin-RevId: 179229423
Diffstat (limited to 'src/test/java/com')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java b/src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java index e99899d770..31b46c26b2 100644 --- a/src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java +++ b/src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java @@ -790,9 +790,12 @@ public class LocalSpawnRunnerTest { options.collectLocalExecutionStatistics = true; Duration minimumWallTimeToSpend = Duration.ofSeconds(10); - Duration maximumWallTimeToSpend = minimumWallTimeToSpend.plus(minimumWallTimeToSpend); // double + // Because of e.g. interference, wall time taken may be much larger than CPU time used. + Duration maximumWallTimeToSpend = Duration.ofSeconds(40); + Duration minimumUserTimeToSpend = minimumWallTimeToSpend; Duration maximumUserTimeToSpend = minimumUserTimeToSpend.plus(Duration.ofSeconds(2)); + Duration minimumSystemTimeToSpend = Duration.ZERO; Duration maximumSystemTimeToSpend = minimumSystemTimeToSpend.plus(Duration.ofSeconds(2)); |