Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuweizhong authored Aug 11, 2023
1 parent a4d2052 commit 030dc92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ func TestConcatDSN_Time_overflow(t *testing.T) {
func TestConcatDSN_String_null(t *testing.T) {
var setting []Setting
ass := assert.New(t)
setting = append(setting, SetCollation(""), SetLoc(""), SetStrict(false), SetInterpolateParams(true))
setting = append([]Setting{}, SetCollation(""), SetLoc(""), SetStrict(false), SetInterpolateParams(true))
ass.Equal("strict=false&interpolateParams=true", concatDSN(setting), `null value should be ignored`)
setting = append(setting, SetCollation(""), SetStrict(false), SetInterpolateParams(true), SetLoc(""))
setting = append([]Setting{}, SetCollation(""), SetStrict(false), SetInterpolateParams(true), SetLoc(""))
ass.Equal("strict=false&interpolateParams=true", concatDSN(setting), `null value should be ignored`)
}

Expand Down

0 comments on commit 030dc92

Please sign in to comment.