Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: fix e2e reader limit test
Merged fintohaps opened 11 months ago

Either error can show up it, according to our wumpus hunter1. Check for both reasons.

1

https://wumpus.liw.fi/log-f30760d6bb86d2978a5ed4df8ee45b9aa97778b4/log-2025-05-02T03:42:38Z.1885.fail.html

1 file changed +4 -1 b608a788 c205322c
modified 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
    );