Skip to content

Commit

Permalink
Merge pull request #18 from nano-interactive/NANO-9360
Browse files Browse the repository at this point in the history
Nano 9360
  • Loading branch information
CerealKiller97 authored Nov 6, 2023
2 parents 555bd8e + 0c2dc53 commit 4baf760
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions testing/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ func CreateMySQL(t testing.TB, optMaker MySQLOptions) (*sql.DB, string) {
if err != nil {
t.Errorf("failed to delete database %s: %v", dbName, err)
}

if err = mysqlClient.Close(); err != nil {
t.Errorf("failed to close connection: %v", err)
t.FailNow()
}
})

_, err = mysqlClient.Exec(
Expand All @@ -81,11 +86,6 @@ func CreateMySQL(t testing.TB, optMaker MySQLOptions) (*sql.DB, string) {
t.FailNow()
}

if err = mysqlClient.Close(); err != nil {
t.Errorf("failed to close connection: %v", err)
t.FailNow()
}

client, err := sql.Open(
"mysql",
fmt.Sprintf(
Expand Down

0 comments on commit 4baf760

Please sign in to comment.