aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools
diff options
context:
space:
mode:
authorGravatar Han-Wen Nienhuys <hanwen@google.com>2015-02-24 17:56:54 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-02-24 17:56:54 +0000
commit96bf5341125537c77ca181897d070bf1cf5262b1 (patch)
treee74fcb07242e31e73ce81a0497dda5fac01a0973 /src/test/java/com/google/devtools
parentbd8fdf6c0913d4fcb38d35a0a0c81f0af89380af (diff)
Decrease flakiness of InterruptibleTest.testInterruptible.
-- MOS_MIGRATED_REVID=87066171
Diffstat (limited to 'src/test/java/com/google/devtools')
-rw-r--r--src/test/java/com/google/devtools/build/lib/shell/InterruptibleTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/shell/InterruptibleTest.java b/src/test/java/com/google/devtools/build/lib/shell/InterruptibleTest.java
index 797093f363..4abedd2e34 100644
--- a/src/test/java/com/google/devtools/build/lib/shell/InterruptibleTest.java
+++ b/src/test/java/com/google/devtools/build/lib/shell/InterruptibleTest.java
@@ -124,8 +124,8 @@ public class InterruptibleTest {
e.getMessage());
}
- // Subprocess execution should be around 1000ms:
- assertDuration(1000, 1500);
+ // Subprocess execution should be around 1000ms, but less than 2000, the subprocess sleep time.
+ assertDuration(1000, 1900);
// We don't assert that the interrupter thread has exited; due to prompt
// termination it might still be running.