Skip to content

Commit

Permalink
update the tests to receive a slot first, before proceeding
Browse files Browse the repository at this point in the history
  • Loading branch information
b-yap committed Sep 4, 2024
1 parent a30e278 commit 63dce28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/vault/tests/helper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,8 @@ where
.expect("failed to start agent");
let oracle_agent = Arc::new(oracle_agent);

// continue ONLY if the oracle agent has received the first slot
while oracle_agent.last_slot_index().await == 0 {}

execute(client, vault_wallet, user_wallet, oracle_agent, vault_id, vault_provider).await
}

0 comments on commit 63dce28

Please sign in to comment.