Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <xw897002528@gmail.com>
  • Loading branch information
xhebox committed Oct 19, 2023
1 parent a28ff0e commit d2a0bb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/executor/memtable_reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit d2a0bb5

Please sign in to comment.