From 0fec222dbd2bf4a00faf0eed49720bd283aa11c7 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Wed, 27 Mar 2024 05:59:45 -0700 Subject: [PATCH] Lowered the fuzzing threshold so we don't overflow the stack on CI --- Tests/CBORDecoderTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CBORDecoderTests.swift b/Tests/CBORDecoderTests.swift index 4328283..d7e59ff 100644 --- a/Tests/CBORDecoderTests.swift +++ b/Tests/CBORDecoderTests.swift @@ -198,7 +198,7 @@ class CBORDecoderTests: XCTestCase { for _ in 1...50 { let length = Int.random(in: 1...1_000_000) let randomData: [UInt8] = Array(repeating: UInt8.random(in: 0...255), count: length) - _ = try? CBOR.decode(randomData, options: CBOROptions(maximumDepth: 1024)) + _ = try? CBOR.decode(randomData, options: CBOROptions(maximumDepth: 512)) } } }