Skip to content

Commit 465045d

Browse files
committed
f Try to fix threaded_payment_retries once more
1 parent 9eb15c1 commit 465045d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/payment_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3955,15 +3955,15 @@ fn test_threaded_payment_retries() {
39553955
}
39563956
}
39573957

3958+
// We give the node some time before we process messages and check the added monitors.
3959+
std::thread::sleep(Duration::from_secs(1));
3960+
39583961
// Make sure we have some events to handle when we go around...
39593962
nodes[0].node.get_and_clear_pending_events();
39603963
nodes[0].node.process_pending_htlc_forwards();
39613964
nodes[0].node.process_pending_htlc_forwards();
39623965
send_msg_events = nodes[0].node.get_and_clear_pending_msg_events();
39633966

3964-
// We give the node some time for persistence to happen, before we check the added
3965-
// monitors.
3966-
std::thread::sleep(Duration::from_secs(3));
39673967
check_added_monitors!(nodes[0], 2);
39683968

39693969
if cur_time > end_time {

0 commit comments

Comments
 (0)