Skip to content

Commit

Permalink
update bthread_butex_unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGuin committed Nov 3, 2023
1 parent 14bcfab commit de2ac82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bthread_butex_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() << "]";
Expand Down

0 comments on commit de2ac82

Please sign in to comment.