Skip to content

Commit c0e027a

Browse files
committed
fix unstable ci test
1 parent f8f5d04 commit c0e027a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/fiber-lib/src/fiber/tests/payment.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4073,7 +4073,10 @@ async fn test_send_payment_shutdown_with_force() {
40734073
) {
40744074
break;
40754075
} else {
4076-
assert_eq!(channel_state.state, ChannelState::ChannelReady);
4076+
assert!(matches!(
4077+
channel_state.state,
4078+
ChannelState::ChannelReady | ChannelState::ShuttingDown(_)
4079+
));
40774080
tokio::time::sleep(tokio::time::Duration::from_millis(1000)).await;
40784081
wait_time += 1000;
40794082
}

0 commit comments

Comments
 (0)