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
This commit is contained in:
Fintan Halpenny 2025-05-07 14:17:21 +01:00
parent b608a78806
commit c205322c56
1 changed files with 4 additions and 1 deletions

View File

@ -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
);