From 0a756b6ba319a8b55c8553d9a2bdb35b54b2e9b3 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 14 May 2025 15:02:34 -0500 Subject: [PATCH] tests(swift): debug info --- .../Tests/BitcoinDevKitTests/LiveWalletTests.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bdk-swift/Tests/BitcoinDevKitTests/LiveWalletTests.swift b/bdk-swift/Tests/BitcoinDevKitTests/LiveWalletTests.swift index b3ab8d4e..54fdbd3c 100644 --- a/bdk-swift/Tests/BitcoinDevKitTests/LiveWalletTests.swift +++ b/bdk-swift/Tests/BitcoinDevKitTests/LiveWalletTests.swift @@ -1,5 +1,6 @@ import XCTest @testable import BitcoinDevKit +import Darwin private let SIGNET_ESPLORA_URL = "http://signet.bitcoindevkit.net" private let TESTNET_ESPLORA_URL = "https://esplora.testnet.kuutamo.cloud" @@ -52,6 +53,11 @@ final class LiveWalletTests: XCTestCase { try wallet.applyUpdate(update: update) let address = wallet.revealNextAddress(keychain: KeychainKind.external).address.description + print("testSyncedBalance - Before balance assertion. Address: \(address)") + print("testSyncedBalance - Before balance assertion. Wallet Balance: \(wallet.balance()))") + print("testSyncedBalance - Before balance assertion. Wallet Balance Total To Sat: \(wallet.balance().total.toSat())") + fflush(stdout) + XCTAssertGreaterThan( wallet.balance().total.toSat(), UInt64(0), @@ -86,6 +92,10 @@ final class LiveWalletTests: XCTestCase { try wallet.applyUpdate(update: update) let address = wallet.revealNextAddress(keychain: KeychainKind.external).address.description + print("testBroadcastTransaction - Before balance assertion. Address: \(address)") + print("testBroadcastTransaction - Before balance assertion. Wallet Balance: \(wallet.balance()))") + print("testBroadcastTransaction - Before balance assertion. Wallet Balance Total To Sat: \(wallet.balance().total.toSat())") + fflush(stdout) XCTAssertGreaterThan( wallet.balance().total.toSat(), UInt64(0),