Add retry, restore ignored tests

This commit is contained in:
Michael Vines 2019-01-07 19:13:55 -08:00
parent d2cb4e003c
commit a8b9899dee
2 changed files with 1 additions and 3 deletions

View File

@ -835,7 +835,6 @@ mod tests {
}
#[test]
#[ignore]
fn test_wrong_role_transition() {
// Create the leader node information
let bootstrap_leader_keypair = Arc::new(Keypair::new());
@ -983,7 +982,6 @@ mod tests {
}
#[test]
#[ignore]
fn test_validator_to_leader_transition() {
// Make a leader identity
let leader_keypair = Keypair::new();

View File

@ -502,7 +502,7 @@ pub fn make_active_set_entries(
let params = json!([active_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();