From f86bded783324aabd6b4330cc125b3c583444417 Mon Sep 17 00:00:00 2001 From: Brian Silverman Date: Tue, 28 Jul 2015 13:42:24 -0700 Subject: [PATCH] Increase sleep in test to fix flakiness under CPU load. --- tests/test_thread_safe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_thread_safe.cpp b/tests/test_thread_safe.cpp index 2f8cb2f8..dee9830a 100644 --- a/tests/test_thread_safe.cpp +++ b/tests/test_thread_safe.cpp @@ -110,7 +110,7 @@ void worker1(void* s) if (c == 0) { - msleep(10); + msleep(100); rc = zmq_send_const(s,&worker_id, 1, 0); assert(rc == 1); } @@ -136,7 +136,7 @@ void worker2(void* s) if (c == 0) { - msleep(10); + msleep(100); rc = zmq_send_const(s,&worker_id, 1, 0); assert(rc == 1); }