File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ package replication
2
2
3
3
import (
4
4
"bytes"
5
- "testing"
6
5
7
6
. "github.com/pingcap/check"
8
- "github.com/stretchr/testify/require"
9
7
)
10
8
11
9
func (t * testSyncerSuite ) TestIndexOutOfRange (c * C ) {
@@ -79,7 +77,7 @@ func (t *testSyncerSuite) TestParseEvent(c *C) {
79
77
}
80
78
}
81
79
82
- func TestDecodeRowsEvent (t * testing. T ) {
80
+ func (t * testSyncerSuite ) TestRowsEventDecodeFunc ( c * C ) {
83
81
testCases := []struct {
84
82
byteData []byte
85
83
eventSize uint32
@@ -105,8 +103,8 @@ func TestDecodeRowsEvent(t *testing.T) {
105
103
})
106
104
for _ , tc := range testCases {
107
105
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 )
111
109
}
112
110
}
You can’t perform that action at this time.
0 commit comments