Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunzhu committed Dec 20, 2021
1 parent 794f393 commit 7f237df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions v4/export/sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1673,9 +1673,10 @@ func TestPickupPossibleField(t *testing.T) {
mock.ExpectQuery(query).WillReturnRows(rows)
}

field, err := pickupPossibleField(meta, conn)
var field string
field, err = pickupPossibleField(meta, conn)
if expectedErr != nil {
require.ErrorIs(t, err, expectedErr)
require.ErrorIs(t, errors.Cause(err), expectedErr)
} else {
require.NoError(t, err)
require.Equal(t, testCase.expectedField, field)
Expand Down

0 comments on commit 7f237df

Please sign in to comment.