Skip to content

Commit

Permalink
Fix client test
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Nov 26, 2024
1 parent fbf1fb5 commit b1c74b3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions crates/client/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use entropy_testing_utils::{
constants::{TEST_PROGRAM_WASM_BYTECODE, TSS_ACCOUNTS, X25519_PUBLIC_KEYS},
helpers::{encode_verifying_key, spawn_tss_nodes_and_start_chain},
substrate_context::test_context_stationary,
ChainSpecType,
test_node_process_testing_state, ChainSpecType,
};
use rand::{
rngs::{OsRng, StdRng},
Expand Down Expand Up @@ -262,10 +262,12 @@ async fn test_remove_program_reference_counter() {
#[tokio::test]
#[serial]
async fn test_get_oracle_headings() {
let substrate_context = test_context_stationary().await;

let api = get_api(&substrate_context.node_proc.ws_url).await.unwrap();
let rpc = get_rpc(&substrate_context.node_proc.ws_url).await.unwrap();
let force_authoring = true;
let context =
test_node_process_testing_state(ChainSpecType::IntegrationJumpStarted, force_authoring)
.await;
let api = get_api(&context[0].ws_url).await.unwrap();
let rpc = get_rpc(&context[0].ws_url).await.unwrap();

let mut current_block = 0;
while current_block < 2 {
Expand Down

0 comments on commit b1c74b3

Please sign in to comment.