From d2a0bb50c1406d7ef479a8d671ccc2f114c3c4a3 Mon Sep 17 00:00:00 2001 From: xhe Date: Thu, 19 Oct 2023 18:00:30 +0800 Subject: [PATCH] fix test Signed-off-by: xhe --- pkg/executor/memtable_reader_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/executor/memtable_reader_test.go b/pkg/executor/memtable_reader_test.go index c95e5974fa644..0ece11099e9d0 100644 --- a/pkg/executor/memtable_reader_test.go +++ b/pkg/executor/memtable_reader_test.go @@ -153,7 +153,7 @@ func TestTiDBClusterConfig(t *testing.T) { // TiDB/TiKV config router.Handle("/config", fn.Wrap(mockConfig)) // Tiproxy config - router.Handle("/api/admin/config?format=json", fn.Wrap(mockConfig)) + router.Handle("/api/admin/config", fn.Wrap(mockConfig)) // mock servers var servers []string @@ -218,7 +218,7 @@ func TestTiDBClusterConfig(t *testing.T) { )) warnings := tk.Session().GetSessionVars().StmtCtx.GetWarnings() require.Len(t, warnings, 0, fmt.Sprintf("unexpected warnings: %+v", warnings)) - require.Equal(t, int32(12), requestCounter) + require.Equal(t, int32(15), requestCounter) // TODO: we need remove it when index usage is GA. rs := tk.MustQuery("show config").Rows() @@ -258,7 +258,7 @@ func TestTiDBClusterConfig(t *testing.T) { }{ { sql: "select * from information_schema.cluster_config", - reqCount: 12, + reqCount: 15, rows: flatten( rows["tidb"][0], rows["tidb"][1], @@ -291,7 +291,7 @@ func TestTiDBClusterConfig(t *testing.T) { }, { sql: "select * from information_schema.cluster_config where type='pd' or instance='" + testServers[0].address + "'", - reqCount: 12, + reqCount: 15, rows: flatten( rows["tidb"][0], rows["tikv"][0], @@ -372,7 +372,7 @@ func TestTiDBClusterConfig(t *testing.T) { { sql: fmt.Sprintf(`select * from information_schema.cluster_config where instance='%s'`, testServers[0].address), - reqCount: 4, + reqCount: 5, rows: flatten( rows["tidb"][0], rows["tikv"][0],