Skip to content

Commit 92bd6a4

Browse files
committed
fixup! Switch to chain monitor deferred writes mode
1 parent d039d43 commit 92bd6a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/common/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,10 @@ pub(crate) async fn do_channel_full_cycle<E: ElectrumApi>(
11461146
);
11471147

11481148
println!("\nB close_channel (force: {})", force_close);
1149+
// Allow the background processor to flush deferred monitor writes so that
1150+
// the channel state no longer has monitor_update_in_progress set.
1151+
tokio::time::sleep(Duration::from_secs(1)).await;
11491152
if force_close {
1150-
tokio::time::sleep(Duration::from_secs(1)).await;
11511153
node_a.force_close_channel(&user_channel_id_a, node_b.node_id(), None).unwrap();
11521154
} else {
11531155
node_a.close_channel(&user_channel_id_a, node_b.node_id()).unwrap();

0 commit comments

Comments
 (0)