We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f5d04 commit c0e027aCopy full SHA for c0e027a
crates/fiber-lib/src/fiber/tests/payment.rs
@@ -4073,7 +4073,10 @@ async fn test_send_payment_shutdown_with_force() {
4073
) {
4074
break;
4075
} else {
4076
- assert_eq!(channel_state.state, ChannelState::ChannelReady);
+ assert!(matches!(
4077
+ channel_state.state,
4078
+ ChannelState::ChannelReady | ChannelState::ShuttingDown(_)
4079
+ ));
4080
tokio::time::sleep(tokio::time::Duration::from_millis(1000)).await;
4081
wait_time += 1000;
4082
}
0 commit comments