From 7c96c3e0a8df56c1e20e2549b83f0e6975d99d14 Mon Sep 17 00:00:00 2001 From: James Dorfman Date: Wed, 3 Apr 2024 19:37:28 +0000 Subject: [PATCH] CI fixes for TestRunner --- tests/common.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/common.rs b/tests/common.rs index f8ef0e386..78932aa50 100644 --- a/tests/common.rs +++ b/tests/common.rs @@ -162,7 +162,7 @@ impl TestRunner { &metrics, Arc::clone(&config), ))); - mempool.write().unwrap().update(&daemon)?; + Mempool::update(&mempool, &daemon)?; let query = Arc::new(Query::new( Arc::clone(&chain), @@ -194,10 +194,9 @@ impl TestRunner { pub fn sync(&mut self) -> Result<()> { self.indexer.update(&self.daemon)?; - let mut mempool = self.mempool.write().unwrap(); - mempool.update(&self.daemon)?; + Mempool::update(&self.mempool, &self.daemon)?; // force an update for the mempool stats, which are normally cached - mempool.update_backlog_stats(); + self.mempool.write().unwrap().update_backlog_stats(); Ok(()) }