From 026ba3ab0fa9e26be5a421552d52ec9403d893e5 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Thu, 15 Aug 2024 11:52:49 -0300 Subject: [PATCH] fix(esplora+wallet+file_store): remove remaining `println!` usage --- crates/esplora/src/async_ext.rs | 7 ------- crates/esplora/src/blocking_ext.rs | 8 -------- crates/file_store/src/store.rs | 2 -- crates/wallet/src/wallet/coin_selection.rs | 1 - 4 files changed, 18 deletions(-) diff --git a/crates/esplora/src/async_ext.rs b/crates/esplora/src/async_ext.rs index 066b91e170..55e2a89abd 100644 --- a/crates/esplora/src/async_ext.rs +++ b/crates/esplora/src/async_ext.rs @@ -527,8 +527,6 @@ mod test { ]; for (i, t) in test_cases.into_iter().enumerate() { - println!("[{}] running test case: {}", i, t.name); - let env = TestEnv::new()?; let base_url = format!("http://{}", &env.electrsd.esplora_url.clone().unwrap()); let client = Builder::new(base_url.as_str()).build_async()?; @@ -571,7 +569,6 @@ mod test { chain.apply_update(update)?; chain }; - println!("local chain height: {}", local_chain.tip().height()); // extend env chain if let Some(to_mine) = t @@ -611,10 +608,6 @@ mod test { // apply update let mut updated_local_chain = local_chain.clone(); updated_local_chain.apply_update(update)?; - println!( - "updated local chain height: {}", - updated_local_chain.tip().height() - ); assert!( { diff --git a/crates/esplora/src/blocking_ext.rs b/crates/esplora/src/blocking_ext.rs index 6e3e25afe7..389a4a928a 100644 --- a/crates/esplora/src/blocking_ext.rs +++ b/crates/esplora/src/blocking_ext.rs @@ -527,8 +527,6 @@ mod test { ]; for (i, t) in test_cases.into_iter().enumerate() { - println!("[{}] running test case: {}", i, t.name); - let env = TestEnv::new()?; let base_url = format!("http://{}", &env.electrsd.esplora_url.clone().unwrap()); let client = Builder::new(base_url.as_str()).build_blocking(); @@ -570,7 +568,6 @@ mod test { chain.apply_update(update)?; chain }; - println!("local chain height: {}", local_chain.tip().height()); // extend env chain if let Some(to_mine) = t @@ -609,10 +606,6 @@ mod test { // apply update let mut updated_local_chain = local_chain.clone(); updated_local_chain.apply_update(update)?; - println!( - "updated local chain height: {}", - updated_local_chain.tip().height() - ); assert!( { @@ -773,7 +766,6 @@ mod test { ]; for (i, t) in test_cases.into_iter().enumerate() { - println!("Case {}: {}", i, t.name); let mut chain = t.chain; let mock_anchors = t diff --git a/crates/file_store/src/store.rs b/crates/file_store/src/store.rs index d1bd3c40c6..62c3d91b66 100644 --- a/crates/file_store/src/store.rs +++ b/crates/file_store/src/store.rs @@ -340,7 +340,6 @@ mod test { for short_write_len in 1..last_changeset_bytes.len() - 1 { let file_path = temp_dir.path().join(format!("{}.dat", short_write_len)); - println!("Test file: {:?}", file_path); // simulate creating a file, writing data where the last write is incomplete { @@ -406,7 +405,6 @@ mod test { for read_count in 0..changesets.len() { let file_path = temp_dir.path().join(format!("{}.dat", read_count)); - println!("Test file: {:?}", file_path); // First, we create the file with all the changesets! let mut db = Store::::create_new(&TEST_MAGIC_BYTES, &file_path).unwrap(); diff --git a/crates/wallet/src/wallet/coin_selection.rs b/crates/wallet/src/wallet/coin_selection.rs index 4cd9003788..8dc36b198b 100644 --- a/crates/wallet/src/wallet/coin_selection.rs +++ b/crates/wallet/src/wallet/coin_selection.rs @@ -1579,7 +1579,6 @@ mod test { ]; for (i, t) in test_cases.into_iter().enumerate() { - println!("Case {}: {}", i, t.name); let (required, optional) = filter_duplicates(to_utxo_vec(t.required), to_utxo_vec(t.optional)); assert_eq!(