From 3c6973f1ddcddcada4eba854841d3129a22f2430 Mon Sep 17 00:00:00 2001 From: yisaer Date: Wed, 1 Feb 2023 16:13:58 +0800 Subject: [PATCH] add test --- server/statistics_handler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/statistics_handler_test.go b/server/statistics_handler_test.go index 6e66368386878..5e2b3e1cd45ed 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()) }() - js, err = io.ReadAll(resp1.Body) + _, err = io.ReadAll(resp1.Body) require.NoError(t, err) path1 := "/tmp/stats2_history.json"