Skip to content

Commit

Permalink
expression: migrate test-infra to testify for constant_fold_test.go (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun committed Dec 7, 2021
1 parent 3337405 commit 889f001
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions expression/constant_fold_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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);`)
Expand Down

0 comments on commit 889f001

Please sign in to comment.