Skip to content

Commit b6fa3a5

Browse files
committed
chore(test): add debug print for force close balance assertion
Investigating flaky channel_full_cycle_force_close failure on Core 29. Prints node_a lightning_balances and pending_balances before assertion at mod.rs:1324 to determine if balance moved to pending prematurely.
1 parent eef5142 commit b6fa3a5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/common/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,11 @@ pub(crate) async fn do_channel_full_cycle<E: ElectrumApi>(
13211321
assert_eq!(node_b.list_balances().pending_balances_from_channel_closures.len(), 1);
13221322

13231323
// Check node_a properly sees all balances and sweeps them.
1324+
let balances_a = node_a.list_balances();
1325+
println!(
1326+
"DEBUG node_a balances before assertion: lightning={:?}, pending={:?}",
1327+
balances_a.lightning_balances, balances_a.pending_balances_from_channel_closures
1328+
);
13241329
assert_eq!(node_a.list_balances().lightning_balances.len(), 1);
13251330
match node_a.list_balances().lightning_balances[0] {
13261331
LightningBalance::ClaimableAwaitingConfirmations {

0 commit comments

Comments
 (0)