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 <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2026-01-07 10:15:25 +08:00 committed by GitHub
parent bc8d4c175c
commit 4719cb80ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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},
},
},
},