@@ -52,9 +52,7 @@ func TestIndexUsageReporter(t *testing.T) {
52
52
runtimeStatsColl := sc .RuntimeStatsColl
53
53
54
54
// For PointGet and BatchPointGet
55
- planID := 3
56
- runtimeStatsColl .GetBasicRuntimeStats (planID , true ).Record (time .Second , 2024 )
57
- reporter .ReportPointGetIndexUsage (tableID , tableID , indexID , planID , 1 )
55
+ reporter .ReportPointGetIndexUsage (tableID , tableID , indexID , 1 , 2024 )
58
56
59
57
require .Eventually (t , func () bool {
60
58
tk .Session ().ReportUsageStats ()
@@ -63,7 +61,7 @@ func TestIndexUsageReporter(t *testing.T) {
63
61
}, time .Second * 5 , time .Millisecond )
64
62
65
63
// For Index Scan
66
- planID = 4
64
+ planID : = 4
67
65
rows := uint64 (2024 )
68
66
zero := uint64 (0 )
69
67
executorID := "test-executor"
@@ -87,9 +85,7 @@ func TestIndexUsageReporter(t *testing.T) {
87
85
Version : statistics .PseudoVersion ,
88
86
RealtimeCount : 100 ,
89
87
})
90
- planID = 4
91
- runtimeStatsColl .GetBasicRuntimeStats (planID , true ).Record (time .Second , 2024 )
92
- reporter .ReportPointGetIndexUsage (tableID , tableID , indexID , planID , 1 )
88
+ reporter .ReportPointGetIndexUsage (tableID , tableID , indexID , 1 , 2024 )
93
89
94
90
require .Eventually (t , func () bool {
95
91
tk .Session ().ReportUsageStats ()
0 commit comments