Skip to content

Commit

Permalink
import require
Browse files Browse the repository at this point in the history
  • Loading branch information
equnchen committed Apr 11, 2024
1 parent d279b6b commit d0f803f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions canal/rows_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package canal

import (
"testing"

"github.com/go-mysql-org/go-mysql/replication"
"github.com/go-mysql-org/go-mysql/schema"
"reflect"
"testing"
"github.com/stretchr/testify/require"
)

func TestRowsEvent_handleUnsigned(t *testing.T) {
Expand Down Expand Up @@ -53,9 +54,7 @@ func TestRowsEvent_handleUnsigned(t *testing.T) {
Header: tt.fields.Header,
}
r.handleUnsigned()
if !reflect.DeepEqual(tt.fields.Rows, tt.wantRows) {
t.Errorf("rows=%+v, wantRows=%+v, not equal", tt.fields.Rows, tt.wantRows)
}
require.Equal(t, tt.fields.Rows, tt.wantRows)
})
}
}

0 comments on commit d0f803f

Please sign in to comment.