br: fix unit test - TestApplyKVFilesWithBatchMethod3 (#39415)
close pingcap/tidb#39412
This commit is contained in:
@ -1348,13 +1348,6 @@ func TestApplyKVFilesWithBatchMethod3(t *testing.T) {
|
||||
Cf: stream.WriteCF,
|
||||
Type: backuppb.FileType_Put,
|
||||
RegionId: 1,
|
||||
}, {
|
||||
Path: "log4",
|
||||
NumberOfEntries: 5,
|
||||
Length: 100,
|
||||
Cf: stream.WriteCF,
|
||||
Type: backuppb.FileType_Put,
|
||||
RegionId: 2,
|
||||
}, {
|
||||
Path: "log5",
|
||||
NumberOfEntries: 5,
|
||||
@ -1394,15 +1387,13 @@ func TestApplyKVFilesWithBatchMethod3(t *testing.T) {
|
||||
applyFunc,
|
||||
)
|
||||
|
||||
require.Equal(t, runCount, 5)
|
||||
require.Equal(t, totalKVCount, int64(30))
|
||||
require.Equal(t, totalKVCount, int64(25))
|
||||
require.Equal(t,
|
||||
logs,
|
||||
[][]string{
|
||||
{"log2"},
|
||||
{"log5", "log6"},
|
||||
{"log3"},
|
||||
{"log4"},
|
||||
{"log1"},
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user