Skip to content

Commit

Permalink
Fix slow test in brpc_socket_unittest.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
zyearn committed Aug 20, 2022
1 parent cf0aa33 commit defcdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/brpc_socket_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ TEST_F(SocketTest, health_check) {
start_time = butil::gettimeofday_us();
while (brpc::Socket::Status(id) != 0) {
bthread_usleep(1000);
ASSERT_LT(butil::gettimeofday_us(), start_time + 1000000L);
ASSERT_LT(butil::gettimeofday_us(), start_time + 1100000L);
}
ASSERT_TRUE(global_sock);

Expand Down

0 comments on commit defcdf8

Please sign in to comment.