From c205322c5630baad4da3f8368502cb6195941211 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 7 May 2025 14:17:21 +0100 Subject: [PATCH] node: fix e2e reader limit test Either error can show up it, according to our wumpus hunter[^0]. Check for both reasons. [^0]: https://wumpus.liw.fi/log-f30760d6bb86d2978a5ed4df8ee45b9aa97778b4/log-2025-05-02T03:42:38Z.1885.fail.html --- radicle-node/src/tests/e2e.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 );