From f984feda4240454f37a324e165149fe49e2d7a1b Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Thu, 7 Nov 2019 10:41:58 -0700 Subject: [PATCH] Use get_slot_with_commitment (#6791) --- local_cluster/src/tests/local_cluster.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/local_cluster/src/tests/local_cluster.rs b/local_cluster/src/tests/local_cluster.rs index 3bb10abbf2..f55e8f4d0f 100644 --- a/local_cluster/src/tests/local_cluster.rs +++ b/local_cluster/src/tests/local_cluster.rs @@ -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; }