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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -650,7 +650,9 @@ fn test_no_voting() {
.get_validator_client(&cluster.entry_point_info.id)
.unwrap();
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 {
break;
}