tests: sleep longer
@@ -22,7 +22,8 @@ use std::thread;
fn test_basic_transfer_leader<T: Simulator>(cluster: &mut Cluster<T>) {
cluster.cfg.raft_store.raft_heartbeat_ticks = 20;
- let reserved_time = Duration::from_millis(cluster.cfg.raft_store.raft_base_tick_interval);
+ let reserved_time = Duration::from_millis(cluster.cfg.raft_store.raft_base_tick_interval *
+ cluster.cfg.raft_store.raft_heartbeat_ticks as u64);
cluster.run();
// transfer leader to (2, 2)
