diff --git a/radicle-node/src/tests/e2e.rs b/radicle-node/src/tests/e2e.rs index 12b457a9..c5be51fe 100644 --- a/radicle-node/src/tests/e2e.rs +++ b/radicle-node/src/tests/e2e.rs @@ -1528,8 +1528,11 @@ fn test_channel_reader_limit() { let FetchResult::Failed { reason } = result else { panic!("fetch result must be failed") }; + // Either gitoxide will error by being unable to consume the packet, or the + // byte limit error will be returned assert!( - reason.contains("Failed to consume the pack sent by the remote"), + reason.contains("Failed to consume the pack sent by the remote") + || reason.contains("exceeded number of allowed bytes"), "actual: {}", reason );