diff --git a/local-cluster/src/local_cluster.rs b/local-cluster/src/local_cluster.rs index 388a906a4cfc2e..7b07b8a15f9ced 100644 --- a/local-cluster/src/local_cluster.rs +++ b/local-cluster/src/local_cluster.rs @@ -534,8 +534,8 @@ impl LocalCluster { let validator_balance = client .rpc_client() .get_balance_with_commitment(&validator_pubkey, CommitmentConfig::processed()) - .map(|response| response.value) - .unwrap_or_default(); + .expect("received response") + .value; info!( "validator {} balance {}", validator_pubkey, validator_balance