Skip to content

Commit

Permalink
Refactor test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 2, 2024
1 parent 9d01457 commit 98a086d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/postgres/schema/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestParseColumnDataType(t *testing.T) {
// unsupported
dataType, opts, err := ParseColumnDataType("foo", nil, nil, nil)
assert.ErrorContains(t, err, `unknown data type: "foo"`)
assert.Zero(t, dataType)
assert.Equal(t, -1, int(dataType))
assert.Nil(t, opts)
}
}
Expand Down

0 comments on commit 98a086d

Please sign in to comment.