aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/gprpp
diff options
context:
space:
mode:
authorGravatar kpayson64 <kpayson@google.com>2018-05-18 10:26:04 -0700
committerGravatar kpayson64 <kpayson@google.com>2018-05-18 10:40:44 -0700
commitf8c1bd826cd232d83b78bb5896ed31effd9a5acd (patch)
tree39af8393594e3c61c8877fb0661add6d0c8f4aac /test/core/gprpp
parentc0a89c71ff7a64aa967a2e4f437eecf0b69af5e7 (diff)
Fix fork test flake
Diffstat (limited to 'test/core/gprpp')
-rw-r--r--test/core/gprpp/fork_test.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/core/gprpp/fork_test.cc b/test/core/gprpp/fork_test.cc
index 05820eb885..642f910489 100644
--- a/test/core/gprpp/fork_test.cc
+++ b/test/core/gprpp/fork_test.cc
@@ -42,8 +42,12 @@ static void test_init() {
grpc_core::Fork::GlobalShutdown();
}
-#define THREAD_DELAY_MS 3000
-#define THREAD_DELAY_EPSILON 500
+// This spawns CONCURRENT_TEST_THREADS that last up to
+// THREAD_DELAY_MS, and checks that the Fork::AwaitThreads()
+// returns roughly after THREAD_DELAY_MS. The epsilon is high
+// because tsan threads can take a while to spawn/join.
+#define THREAD_DELAY_MS 6000
+#define THREAD_DELAY_EPSILON 1500
#define CONCURRENT_TEST_THREADS 100
static void sleeping_thd(void* arg) {