Skip to content

Commit

Permalink
executor: skip TemporaryTableNoNetwork unit test under infoschema v2 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Mar 12, 2024
1 parent 478ab1f commit 05a63f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/executor/temporary_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ func assertTemporaryTableNoNetwork(t *testing.T, createTable func(*testkit.TestK

tk.MustExec("use test")
tk1.MustExec("use test")

if tk.MustQuery("select @@tidb_schema_cache_size > 0").Equal(testkit.Rows("1")) {
// infoschema v2 requires network, so it cannot be tested this way.
t.Skip()
}

tk.MustExec("drop table if exists normal, tmp_t")
tk.MustExec("create table normal (id int, a int, index(a))")
createTable(tk)
Expand Down

0 comments on commit 05a63f7

Please sign in to comment.