Skip to content

Commit

Permalink
fix sim unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jul 9, 2024
1 parent f3fd040 commit 3d20d6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/meta/src/rpc/election/etcd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ mod tests {

let leader = new_followers.into_iter().next().unwrap();

assert!(leader.1.is_leader().await);
assert!(leader.1.is_leader());
}

#[tokio::test]
Expand Down Expand Up @@ -434,7 +434,7 @@ mod tests {
let mut leaders = vec![];
let mut followers = vec![];
for (sender, client) in clients {
if client.is_leader().await {
if client.is_leader() {
leaders.push((sender, client));
} else {
followers.push((sender, client));
Expand Down Expand Up @@ -476,7 +476,7 @@ mod tests {
}

for client in &clients {
assert!(!client.1.is_leader().await);
assert!(!client.1.is_leader());
}

for (stop_sender, client) in &clients {
Expand Down

0 comments on commit 3d20d6b

Please sign in to comment.