From 4719cb80cac7da98dff13c34fc06619b7438b116 Mon Sep 17 00:00:00 2001 From: congqixia Date: Wed, 7 Jan 2026 10:15:25 +0800 Subject: [PATCH] fix: Remove extra binlog in flaky unit test (#46841) Fixes: #46840 The test "failure_returns_partial_file_list" had 3 binlog entries but only mocked 2 Copy calls, causing flaky behavior. Remove the unmocked third binlog to make the test deterministic. Signed-off-by: Congqi Xia --- internal/datanode/importv2/copy_segment_utils_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/datanode/importv2/copy_segment_utils_test.go b/internal/datanode/importv2/copy_segment_utils_test.go index 5c47aece0f..a6f323f7f4 100644 --- a/internal/datanode/importv2/copy_segment_utils_test.go +++ b/internal/datanode/importv2/copy_segment_utils_test.go @@ -645,7 +645,6 @@ func TestCopySegmentAndIndexFiles_ReturnsFileList(t *testing.T) { Binlogs: []*datapb.Binlog{ {LogPath: "files/insert_log/111/222/333/1/10001", LogSize: 100}, {LogPath: "files/insert_log/111/222/333/1/10002", LogSize: 200}, - {LogPath: "files/insert_log/111/222/333/1/10003", LogSize: 300}, }, }, },