Fix binary protocol test fixtures

This commit is contained in:
jack
2025-10-14 22:25:29 +02:00
parent aa35200c6f
commit 367addf138
2 changed files with 4 additions and 2 deletions
@@ -90,7 +90,8 @@ final class BinaryProtocolTests: XCTestCase {
}
// The encoded size should be smaller than uncompressed due to compression
let uncompressedSize = BinaryProtocol.headerSize + BinaryProtocol.senderIDSize + largePayload.count
let headerSize = BinaryProtocol.headerSize(for: packet.version)
let uncompressedSize = headerSize + BinaryProtocol.senderIDSize + largePayload.count
XCTAssertLessThan(encodedData.count, uncompressedSize)
// Decode and verify