Fix binary protocol test fixtures

This commit is contained in:
jack
2025-10-15 17:37:19 +01:00
committed by islam
parent ba49b885bb
commit 5beff8b4dc
2 changed files with 5 additions and 3 deletions
@@ -99,7 +99,8 @@ struct NotificationStreamAssemblerTests {
func testAssemblesCompressedLargeFrame() throws {
var assembler = NotificationStreamAssembler()
let largeContent = Data(repeating: 0x41, count: 2_500_000)
// Keep the fixture below FileTransferLimits.maxPayloadBytes so encoding succeeds while still exercising compression.
let largeContent = Data(repeating: 0x41, count: 600_000)
let filePacket = BitchatFilePacket(
fileName: "large.bin",
fileSize: UInt64(largeContent.count),