Use get_slot_with_commitment (#6791)

This commit is contained in:
Tyera Eulberg
2019-11-07 10:41:58 -07:00
committed by GitHub
parent 56fc15f44d
commit f984feda42

View File

@ -650,7 +650,9 @@ fn test_no_voting() {
.get_validator_client(&cluster.entry_point_info.id) .get_validator_client(&cluster.entry_point_info.id)
.unwrap(); .unwrap();
loop { loop {
let last_slot = client.get_slot().expect("Couldn't get slot"); let last_slot = client
.get_slot_with_commitment(CommitmentConfig::recent())
.expect("Couldn't get slot");
if last_slot > 4 * VOTE_THRESHOLD_DEPTH as u64 { if last_slot > 4 * VOTE_THRESHOLD_DEPTH as u64 {
break; break;
} }