From 889f001aef983ef0654f37c0ff8afea592ee01da Mon Sep 17 00:00:00 2001 From: tison Date: Tue, 7 Dec 2021 09:51:55 +0800 Subject: [PATCH] expression: migrate test-infra to testify for constant_fold_test.go (#30424) --- expression/constant_fold_test.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/expression/constant_fold_test.go b/expression/constant_fold_test.go index cbdd966804bfa..d116da3916586 100644 --- a/expression/constant_fold_test.go +++ b/expression/constant_fold_test.go @@ -15,12 +15,18 @@ package expression_test import ( - . "github.com/pingcap/check" - "github.com/pingcap/tidb/util/testkit" + "testing" + + "github.com/pingcap/tidb/testkit" ) -func (s *testIntegrationSuite) TestFoldIfNull(c *C) { - tk := testkit.NewTestKit(c, s.store) +func TestFoldIfNull(t *testing.T) { + t.Parallel() + + store, clean := testkit.CreateMockStore(t) + defer clean() + + tk := testkit.NewTestKit(t, store) tk.MustExec(`use test;`) tk.MustExec(`drop table if exists t;`) tk.MustExec(`create table t(a bigint, b bigint);`)