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:
parent
b608a78806
commit
c205322c56
|
|
@ -1528,8 +1528,11 @@ fn test_channel_reader_limit() {
|
||||||
let FetchResult::Failed { reason } = result else {
|
let FetchResult::Failed { reason } = result else {
|
||||||
panic!("fetch result must be failed")
|
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!(
|
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: {}",
|
"actual: {}",
|
||||||
reason
|
reason
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue