This commit is contained in:
Anatoly Yakovenko 2018-08-26 23:31:26 -07:00 committed by Grimes
parent e5408368f7
commit 8d0d429acd
1 changed files with 5 additions and 1 deletions

View File

@ -144,7 +144,11 @@ fn send_barrier_transaction(barrier_client: &mut ThinClient, last_id: &mut Hash,
// Sanity check that the client balance is still 1
let balance = barrier_client
.poll_get_balance(&id.pubkey())
.poll_balance_with_timeout(
&id.pubkey(),
&Duration::from_millis(100),
&Duration::from_secs(10),
)
.expect("Failed to get balance");
if balance != 1 {
panic!("Expected an account balance of 1 (balance: {}", balance);