Skip to content

Commit 5dd5739

Browse files
authored
fix: Enable Skipping of DeleteRecord tests (#1299)
<!-- Explain what problem this PR addresses --> ---
1 parent 2038c32 commit 5dd5739

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin/testing_write.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ type WriterTestSuiteTests struct {
5252
// SkipDeleteStale skips testing message.Delete events.
5353
SkipDeleteStale bool
5454

55+
// SkipDeleteRecord skips testing message.DeleteRecord events.
56+
SkipDeleteRecord bool
57+
5558
// SkipAppend skips testing message.Insert and Upsert=false.
5659
SkipInsert bool
5760

@@ -149,6 +152,9 @@ func TestWriterSuiteRunner(t *testing.T, p *Plugin, tests WriterTestSuiteTests,
149152
})
150153

151154
t.Run("TestDeleteRecord", func(t *testing.T) {
155+
if suite.tests.SkipDeleteRecord {
156+
t.Skip("skipping " + t.Name())
157+
}
152158
t.Run("Basic", func(t *testing.T) {
153159
suite.testDeleteRecordBasic(ctx)
154160
})

0 commit comments

Comments
 (0)