From e1abc2a3677c89bd300f96081b07e8c34e69aafd Mon Sep 17 00:00:00 2001 From: Stella Lau Date: Mon, 7 Aug 2017 11:43:37 -0700 Subject: [PATCH] Switch the sleep function to UTIL_sleepMilli --- tests/poolTests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/poolTests.c b/tests/poolTests.c index d5c37aee..9e11281b 100644 --- a/tests/poolTests.c +++ b/tests/poolTests.c @@ -1,8 +1,8 @@ #include "pool.h" #include "threading.h" +#include "util.h" #include #include -#include #define ASSERT_TRUE(p) \ do { \ @@ -53,7 +53,7 @@ int testOrder(size_t numThreads, size_t queueSize) { void waitFn(void *opaque) { (void)opaque; - usleep(100); + UTIL_sleepMilli(1); } /* Tests for deadlock */