From 7e026e3eed09d5b8ee4b83b7d66b509ef9c256b1 Mon Sep 17 00:00:00 2001 From: peg Date: Mon, 16 Sep 2024 13:56:40 +0200 Subject: [PATCH] Update test helper for mocking jumpstart --- crates/threshold-signature-server/src/helpers/tests.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/threshold-signature-server/src/helpers/tests.rs b/crates/threshold-signature-server/src/helpers/tests.rs index 07d25c070..721aeefda 100644 --- a/crates/threshold-signature-server/src/helpers/tests.rs +++ b/crates/threshold-signature-server/src/helpers/tests.rs @@ -282,7 +282,8 @@ pub async fn jump_start_network_with_signer( let jump_start_request = entropy::tx().registry().jump_start_network(); let _result = submit_transaction(api, rpc, signer, &jump_start_request, None).await.unwrap(); - let validators_names = vec![ValidatorName::Bob, ValidatorName::Charlie, ValidatorName::Dave]; + let validators_names = + vec![ValidatorName::Alice, ValidatorName::Bob, ValidatorName::Charlie, ValidatorName::Dave]; for validator_name in validators_names { let mnemonic = development_mnemonic(&Some(validator_name)); let (tss_signer, _static_secret) = @@ -290,7 +291,9 @@ pub async fn jump_start_network_with_signer( let jump_start_confirm_request = entropy::tx().registry().confirm_jump_start(BoundedVec(EVE_VERIFYING_KEY.to_vec())); - submit_transaction(api, rpc, &tss_signer, &jump_start_confirm_request, None).await.unwrap(); + // Ignore the error as one confirmation will fail + let _result = + submit_transaction(api, rpc, &tss_signer, &jump_start_confirm_request, None).await; } }