Skip to content

Commit

Permalink
Make app state ready in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Dec 17, 2024
1 parent e416800 commit 7d8690b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/threshold-signature-server/src/helpers/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pub async fn setup_client() -> KvManager {
let _ = setup_latest_block_number(&kv_store).await;
let configuration = Configuration::new(DEFAULT_ENDPOINT.to_string());
let app_state = AppState::new(configuration, kv_store.clone(), &Some(ValidatorName::Alice));
app_state.make_ready();

let app = app(app_state).into_make_service();

Expand Down Expand Up @@ -107,6 +108,7 @@ pub async fn create_clients(
}

let app_state = AppState::new(configuration, kv_store.clone(), validator_name);
app_state.make_ready();

let account_id = app_state.subxt_account_id();

Expand Down

0 comments on commit 7d8690b

Please sign in to comment.