Skip to content

Commit 926fcbe

Browse files
mysql_cdc: udpate integration test
1 parent a07116e commit 926fcbe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/impl/mysql/integration_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,9 @@ file:
14551455
require.NoError(t, streamOutBuilder.AddBatchConsumerFunc(func(_ context.Context, mb service.MessageBatch) error {
14561456
msgBytes, err := mb[0].AsBytes()
14571457
require.NoError(t, err)
1458+
op, _ := mb[0].MetaGet("operation")
1459+
assert.Equal(t, "read", op, "expected snapshot message operation to be 'read'")
1460+
14581461
outBatchesMu.Lock()
14591462
outBatches = append(outBatches, string(msgBytes))
14601463
outBatchesMu.Unlock()
@@ -1515,6 +1518,9 @@ file:
15151518
require.NoError(t, streamOutBuilder.AddBatchConsumerFunc(func(_ context.Context, mb service.MessageBatch) error {
15161519
msgBytes, err := mb[0].AsBytes()
15171520
require.NoError(t, err)
1521+
op, _ := mb[0].MetaGet("operation")
1522+
assert.Equal(t, "read", op, "expected snapshot message operation to be 'read'")
1523+
15181524
outBatchesMu.Lock()
15191525
outBatches = append(outBatches, string(msgBytes))
15201526
outBatchesMu.Unlock()

0 commit comments

Comments
 (0)