Skip to content

Commit

Permalink
Adds a comment in test warning against code reuse with buffered servi…
Browse files Browse the repository at this point in the history
…ces.
  • Loading branch information
arya2 committed Nov 22, 2024
1 parent 3dc3c1c commit 89a747a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zebrad/src/components/mempool/tests/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,8 @@ async fn mempool_responds_to_await_output() -> Result<(), Report> {
// Wait for post-verification steps in mempool's Downloads
tokio::time::sleep(Duration::from_secs(1)).await;

// Note: Buffered services shouldn't be polled without being called.
// See `mempool::Request::CheckForVerifiedTransactions` for more details.
mempool
.ready()
.await
Expand Down

0 comments on commit 89a747a

Please sign in to comment.