Skip to content

Commit

Permalink
Check new flag in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Dec 3, 2024
1 parent a8e6a11 commit a08da3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/mysql/binlog_event_mysql56_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a08da3a

Please sign in to comment.