From b5e009a33cf6760b4f499bab2fa63a05ca9277df Mon Sep 17 00:00:00 2001 From: wk989898 Date: Tue, 17 Dec 2024 15:30:21 +0800 Subject: [PATCH] update --- cdc/redo/writer/memory/mem_log_writer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdc/redo/writer/memory/mem_log_writer_test.go b/cdc/redo/writer/memory/mem_log_writer_test.go index ffa0e7880c7..e1f2d80c33a 100644 --- a/cdc/redo/writer/memory/mem_log_writer_test.go +++ b/cdc/redo/writer/memory/mem_log_writer_test.go @@ -96,7 +96,7 @@ func testWriteEvents(t *testing.T, events []writer.RedoEvent) { "WriteEvents": func(expected error) { if expected == nil { err := lw.WriteEvents(ctx, events...) - require.Nil(t, err) + require.NoError(t, err) } else { require.Eventually( t, func() bool { @@ -109,7 +109,7 @@ func testWriteEvents(t *testing.T, events []writer.RedoEvent) { "FlushLog": func(expected error) { if expected == nil { err := lw.FlushLog(ctx) - require.Nil(t, err) + require.NoError(t, err) } else { require.Eventually( t, func() bool {