Skip to content

Commit

Permalink
fix queue tests
Browse files Browse the repository at this point in the history
Co-authored-by: Arya <aryasolhi@gmail.com>
  • Loading branch information
oxarbitrage and arya2 committed Dec 20, 2024
1 parent 7418db4 commit 06cd958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions zebra-rpc/src/methods/tests/prop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,10 @@ proptest! {
let transaction_hash = tx.hash();
let tx_bytes = tx.zcash_serialize_to_vec()?;
let tx_hex = hex::encode(&tx_bytes);
let send_task = tokio::task::spawn(async move { rpc.send_raw_transaction(tx_hex).await });

let send_task = {
let rpc = rpc.clone();
tokio::task::spawn(async move { rpc.send_raw_transaction(tx_hex).await })
};
let tx_unmined = UnminedTx::from(tx);
let expected_request = mempool::Request::Queue(vec![tx_unmined.clone().into()]);

Expand Down
3 changes: 0 additions & 3 deletions zebra-rpc/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ impl Runner {
};

self.queue.insert(tx.clone());
if self.receiver.is_empty() {
break;
}
}

// skip some work if stored tip height is the same as the one arriving
Expand Down

0 comments on commit 06cd958

Please sign in to comment.