From 569b82a2c45a902ac2562e6a53069ef345e7b3b4 Mon Sep 17 00:00:00 2001 From: tison Date: Mon, 6 Dec 2021 13:06:26 +0800 Subject: [PATCH] expression: migrate test-infra to testify for constant_fold_test.go This closes #28851. Signed-off-by: tison --- 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);`)