Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehds committed Apr 29, 2024
1 parent ad5d819 commit efbd0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class Cluster {

// return true if there is a leader, false when reach timeout.
void wait_leader(int64_t timeout_ms = 100 * 1000 /*100 seconds*/) {
int64_t deadline = butil::timespec_to_microseconds(
int64_t deadline = butil::timespec_to_milliseconds(
butil::milliseconds_from_now(timeout_ms));

while (butil::gettimeofday_ms() < deadline) {
Expand Down

0 comments on commit efbd0fd

Please sign in to comment.