Skip to content

Commit

Permalink
CI fixes for TestRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdorfman authored and shesek committed Apr 3, 2024
1 parent 8700b17 commit 7c96c3e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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(())
}

Expand Down

0 comments on commit 7c96c3e

Please sign in to comment.