From 74359d36ae50fa3db579221a77b97ab67c514184 Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Wed, 15 Dec 2021 14:03:23 +0800 Subject: [PATCH] Update expression/integration_test.go --- expression/integration_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/expression/integration_test.go b/expression/integration_test.go index 2f5ce4b216adc..79cb81daf90f6 100644 --- a/expression/integration_test.go +++ b/expression/integration_test.go @@ -6896,8 +6896,10 @@ func TestIssue30326(t *testing.T) { require.Error(t, err, "[executor:1242]Subquery returns more than 1 row") } -func (s *testIntegrationSuite) TestIssue30174(c *C) { - tk := testkit.NewTestKit(c, s.store) +func TestIssue30174(t *testing.T) { + store, clean := testkit.CreateMockStore(t) + defer clean() + tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t1,t2;") tk.MustExec("CREATE TABLE `t1` (\n `c1` enum('Alice','Bob','Charlie','David') NOT NULL,\n `c2` blob NOT NULL,\n PRIMARY KEY (`c2`(5)),\n UNIQUE KEY `idx_89` (`c1`)\n);")