From a08da3a5f732968b3419f4f9274708fbbff43566 Mon Sep 17 00:00:00 2001 From: Matt Lord Date: Tue, 3 Dec 2024 08:30:57 -0500 Subject: [PATCH] Check new flag in unit test Signed-off-by: Matt Lord --- go/mysql/binlog_event_mysql56_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/mysql/binlog_event_mysql56_test.go b/go/mysql/binlog_event_mysql56_test.go index 861d98c6e4f..5844779de63 100644 --- a/go/mysql/binlog_event_mysql56_test.go +++ b/go/mysql/binlog_event_mysql56_test.go @@ -186,9 +186,11 @@ func TestMysql56DecodeTransactionPayload(t *testing.T) { } } if tc.inMemory { + require.False(t, tp.StreamingContents) require.Equal(t, memDecodingCnt+1, compressedTrxPayloadsInMem.Get()) require.Equal(t, tc.want, eventStrs) } else { + require.True(t, tp.StreamingContents) require.Equal(t, streamDecodingCnt+1, compressedTrxPayloadsUsingStream.Get()) require.Len(t, eventStrs, len(tc.want)) totalSize := 0