Skip to content

Commit b59a00a

Browse files
committed
use checker instead of require
1 parent ec80822 commit b59a00a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

replication/parser_test.go

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ package replication
22

33
import (
44
"bytes"
5-
"testing"
65

76
. "github.com/pingcap/check"
8-
"github.com/stretchr/testify/require"
97
)
108

119
func (t *testSyncerSuite) TestIndexOutOfRange(c *C) {
@@ -79,7 +77,7 @@ func (t *testSyncerSuite) TestParseEvent(c *C) {
7977
}
8078
}
8179

82-
func TestDecodeRowsEvent(t *testing.T) {
80+
func (t *testSyncerSuite) TestRowsEventDecodeFunc(c *C) {
8381
testCases := []struct {
8482
byteData []byte
8583
eventSize uint32
@@ -105,8 +103,8 @@ func TestDecodeRowsEvent(t *testing.T) {
105103
})
106104
for _, tc := range testCases {
107105
e, err := parser.Parse(tc.byteData)
108-
require.NoError(t, err)
109-
require.Equal(t, e.Header.EventType, tc.eventType)
110-
require.Equal(t, e.Header.EventSize, tc.eventSize)
106+
c.Assert(err, IsNil)
107+
c.Assert(e.Header.EventType, Equals, tc.eventType)
108+
c.Assert(e.Header.EventSize, Equals, tc.eventSize)
111109
}
112110
}

0 commit comments

Comments
 (0)