Skip to content

Commit

Permalink
fix missing skip test when there is no DB available
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jun 5, 2024
1 parent 2f7015e commit 9e5ce55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3539,6 +3539,9 @@ func TestConnectionAttributes(t *testing.T) {
}

func TestErrorInMultiResult(t *testing.T) {
if !available {
t.Skipf("MySQL server not running on %s", netAddr)
}
// https://github.com/go-sql-driver/mysql/issues/1361
var db *sql.DB
if _, err := ParseDSN(dsn); err != errInvalidDSNUnsafeCollation {
Expand Down

0 comments on commit 9e5ce55

Please sign in to comment.