Skip to content

Commit 7c96c3e

Browse files
jamesdorfmanshesek
authored andcommitted
CI fixes for TestRunner
1 parent 8700b17 commit 7c96c3e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/common.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl TestRunner {
162162
&metrics,
163163
Arc::clone(&config),
164164
)));
165-
mempool.write().unwrap().update(&daemon)?;
165+
Mempool::update(&mempool, &daemon)?;
166166

167167
let query = Arc::new(Query::new(
168168
Arc::clone(&chain),
@@ -194,10 +194,9 @@ impl TestRunner {
194194

195195
pub fn sync(&mut self) -> Result<()> {
196196
self.indexer.update(&self.daemon)?;
197-
let mut mempool = self.mempool.write().unwrap();
198-
mempool.update(&self.daemon)?;
197+
Mempool::update(&self.mempool, &self.daemon)?;
199198
// force an update for the mempool stats, which are normally cached
200-
mempool.update_backlog_stats();
199+
self.mempool.write().unwrap().update_backlog_stats();
201200
Ok(())
202201
}
203202

0 commit comments

Comments
 (0)