Skip to content

Commit ede3985

Browse files
committed
Initialize tracing crate
1 parent fb3497e commit ede3985

5 files changed

Lines changed: 31 additions & 13 deletions

File tree

Cargo.lock

Lines changed: 16 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
resolver = "3"
3-
members = ["protocol", "rpc", "wallet", "testenv"]
3+
members = ["protocol", "rpc", "wallet", "testenv", "tracing"]
44
exclude = ["poc"]
55

66
[workspace.dependencies]

tracing/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "tracing"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
tracing = "0.1.41"
8+
tracing-subscriber = { version = "0.3.20", features = ["env-filter"] }
9+
10+
[lints]
11+
workspace = true

tracing/src/lib.rs

Whitespace-only changes.

wallet/tests/wallet_integration_test.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ async fn test_cbf_main_wallet() -> anyhow::Result<()> {
242242
#[tokio::test]
243243
async fn test_cbf_imported() -> anyhow::Result<()> {
244244
let env = TestEnv::new()?;
245-
env.mine_blocks(1)?;
246-
env.wait_for_block()?;
245+
env.mine_block()?;
247246

248247
let mut wallet = BMPWallet::new(Network::Regtest)?;
249248

@@ -269,8 +268,8 @@ async fn test_cbf_imported() -> anyhow::Result<()> {
269268
#[tokio::test]
270269
async fn test_cbf_imported_and_main() -> anyhow::Result<()> {
271270
let env = TestEnv::new()?;
272-
env.mine_blocks(1)?;
273-
env.wait_for_block()?;
271+
env.mine_block()?;
272+
274273
let mut wallet = BMPWallet::new(Network::Regtest)?;
275274
let addr = wallet.next_unused_address(KeychainKind::External);
276275
env.fund_address(&addr, Amount::from_sat(100000))?;

0 commit comments

Comments
 (0)