Use retry_make_rpc_request to avoid occasional CI test failures
This commit is contained in:
parent
0a981a6606
commit
2c52e82352
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue