diff --git a/test/bthread_butex_unittest.cpp b/test/bthread_butex_unittest.cpp index 8f2f4f5f3f..f59eeb1aed 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), 25000L) << "timeout when joining thread_" << th - (bthread_t*)arg; LOG(INFO) << "Joined thread " << *th << " at " << elp << "us [" << bthread_self() << "]";