From 30a3a81d16e2dbf83ce5b066a9a1a4de611f5a41 Mon Sep 17 00:00:00 2001 From: Matt Lord Date: Wed, 13 Nov 2024 00:17:23 -0500 Subject: [PATCH] Update unit test Signed-off-by: Matt Lord --- go/mysql/binlog_event_mysql56_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/go/mysql/binlog_event_mysql56_test.go b/go/mysql/binlog_event_mysql56_test.go index cd755e829dc..49e89d07e09 100644 --- a/go/mysql/binlog_event_mysql56_test.go +++ b/go/mysql/binlog_event_mysql56_test.go @@ -141,6 +141,12 @@ func TestMysql56DecodeTransactionPayload(t *testing.T) { }, } + // Ensure that we can process events where the *uncompressed* size is + // larger than ZstdInMemoryDecompressorMaxSize. The *compressed* size + // of the payload in large_compressed_trx_payload.bin is 16KiB so we + // set the max to 1KiB to test this. + ZstdInMemoryDecompressorMaxSize = 1024 * 1024 + for _, tc := range testCases { memDecodingCnt := compressedTrxPayloadsInMem.Get() streamDecodingCnt := compressedTrxPayloadsUsingStream.Get()