Skip to content

Commit 834f2e5

Browse files
joostjagerclaude
andcommitted
chanmon_consistency: accept ChannelUnavailable on splice after force-close
The splice_channel error handler only expected APIMisuseError with a splice-related message. When a channel has been force-closed, the splice call returns ChannelUnavailable instead, which caused the assertion to panic. Allow ChannelUnavailable as a valid error variant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0fd6b91 commit 834f2e5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fuzz/src/chanmon_consistency.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,8 @@ pub fn do_test<Out: Output + MaybeSend + MaybeSync>(
14551455
},
14561456
Err(e) => {
14571457
assert!(
1458-
matches!(e, APIError::APIMisuseError { ref err } if err.contains("splice")),
1458+
matches!(e, APIError::APIMisuseError { ref err } if err.contains("splice"))
1459+
|| matches!(e, APIError::ChannelUnavailable { .. }),
14591460
"{:?}",
14601461
e
14611462
);

0 commit comments

Comments
 (0)