From de2ac828fbdd776aab19a8bcc43dfe158445d7c1 Mon Sep 17 00:00:00 2001 From: Kevin Chou Date: Thu, 2 Nov 2023 11:10:05 +0800 Subject: [PATCH] update bthread_butex_unittest --- test/bthread_butex_unittest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bthread_butex_unittest.cpp b/test/bthread_butex_unittest.cpp index 8f2f4f5f3f..ff70f69f70 100644 --- a/test/bthread_butex_unittest.cpp +++ b/test/bthread_butex_unittest.cpp @@ -57,7 +57,7 @@ void* joiner(void* arg) { LOG(FATAL) << "fail to join thread_" << th - (bthread_t*)arg; } long elp = butil::gettimeofday_us() - t1; - EXPECT_LE(labs(elp - (th - (bthread_t*)arg + 1) * 100000L), 15000L) + EXPECT_LE(labs(elp - (th - (bthread_t*)arg + 1) * 100000L), 20000L) << "timeout when joining thread_" << th - (bthread_t*)arg; LOG(INFO) << "Joined thread " << *th << " at " << elp << "us [" << bthread_self() << "]";