Skip to content

Commit

Permalink
ddl/callback_test.go: migrate test-infra to testify (#30317)
Browse files Browse the repository at this point in the history
  • Loading branch information
zach030 authored Dec 10, 2021
1 parent c08f7fc commit 66163de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ddl/callback_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ package ddl

import (
"context"
"testing"

. "github.com/pingcap/check"
"github.com/pingcap/tidb/infoschema"
"github.com/pingcap/tidb/parser/model"
"github.com/pingcap/tidb/sessionctx"
"github.com/pingcap/tidb/util/logutil"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
)

Expand Down Expand Up @@ -117,9 +118,9 @@ func (tc *TestDDLCallback) OnWatched(ctx context.Context) {
tc.BaseCallback.OnWatched(ctx)
}

func (s *testDDLSuite) TestCallback(c *C) {
func TestCallback(t *testing.T) {
cb := &BaseCallback{}
c.Assert(cb.OnChanged(nil), IsNil)
require.Nil(t, cb.OnChanged(nil))
cb.OnJobRunBefore(nil)
cb.OnJobUpdated(nil)
cb.OnWatched(context.TODO())
Expand Down

0 comments on commit 66163de

Please sign in to comment.