Use retry_make_rpc_request to avoid occasional CI test failures

This commit is contained in:
Michael Vines 2019-01-07 21:07:04 -08:00 committed by Grimes
parent 0a981a6606
commit 2c52e82352
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ fn register_node(signer: SocketAddr, keypair: Arc<Keypair>) -> Pubkey {
let params = json!([keypair.pubkey(), sig, msg.as_bytes()]);
let resp = RpcRequest::RegisterNode
.make_rpc_request(&rpc_client, 1, Some(params))
.retry_make_rpc_request(&rpc_client, 1, Some(params), 5)
.unwrap();
let vote_account_id: Pubkey = serde_json::from_value(resp).unwrap();
vote_account_id