Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: fix e2e reader limit test
Fintan Halpenny committed 11 months ago
commit c205322c5630baad4da3f8368502cb6195941211
parent b608a7880695a2e21fe25240238f0d26e13a82c2
1 file changed +4 -1
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
    );