diff --git a/server/statistics_handler_test.go b/server/statistics_handler_test.go index 5e2b3e1cd45ed..6e66368386878 100644 --- a/server/statistics_handler_test.go +++ b/server/statistics_handler_test.go @@ -195,7 +195,7 @@ func TestDumpPartitionTableStats(t *testing.T) { defer func() { require.NoError(t, resp1.Body.Close()) }() - _, err = io.ReadAll(resp1.Body) + js, err = io.ReadAll(resp1.Body) require.NoError(t, err) path1 := "/tmp/stats2_history.json"