Skip to content

Commit

Permalink
fix fragile test
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Dec 12, 2023
1 parent da50f26 commit a560843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ func runTests(t *testing.T, dsn string, tests ...func(dbt *DBTest)) {
for _, test := range tests {
t.Run("default", func(t *testing.T) {
dbt := &DBTest{t, db}
defer dbt.db.Exec("DROP TABLE IF EXISTS test")
test(dbt)
dbt.db.Exec("DROP TABLE IF EXISTS test")
})
if db2 != nil {
t.Run("interpolateParams", func(t *testing.T) {
dbt2 := &DBTest{t, db2}
defer dbt2.db.Exec("DROP TABLE IF EXISTS test")
test(dbt2)
dbt2.db.Exec("DROP TABLE IF EXISTS test")
})
}
}
Expand Down

0 comments on commit a560843

Please sign in to comment.