mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 15:05:20 +00:00
Fix binary protocol test fixtures
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user