Skip to content

Commit

Permalink
Fixes vectors test
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Sep 30, 2024
1 parent 66b841e commit 2342d75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zebrad/src/components/mempool/tests/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,11 @@ async fn mempool_responds_to_await_output() -> Result<(), Report> {
.expect("mempool tx verification result channel should not be closed")
.expect("mocked verification should be successful");

// Wait for next steps in mempool's Downloads to finish
// TODO: Move this and the `ready().await` below above waiting for the mempool verification result above after
// waiting to respond with a transaction's verification result until after it's been inserted into the mempool.
tokio::time::sleep(Duration::from_secs(1)).await;

mempool
.ready()
.await
Expand Down

0 comments on commit 2342d75

Please sign in to comment.