From 89a747a8274a973b932dafb6b2c56e0c1e9a7e7c Mon Sep 17 00:00:00 2001 From: Arya Date: Fri, 22 Nov 2024 18:53:40 -0500 Subject: [PATCH] Adds a comment in test warning against code reuse with buffered services. --- zebrad/src/components/mempool/tests/vector.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebrad/src/components/mempool/tests/vector.rs b/zebrad/src/components/mempool/tests/vector.rs index 9b7af4f6453..9dd3557de9c 100644 --- a/zebrad/src/components/mempool/tests/vector.rs +++ b/zebrad/src/components/mempool/tests/vector.rs @@ -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