Skip to content

Commit

Permalink
fix missing skip test when no DB is available (go-sql-driver#1594)
Browse files Browse the repository at this point in the history
Fix `go test` fails when no DB is set up.
  • Loading branch information
methane committed Jun 11, 2024
1 parent 05325d8 commit 9b8d28e
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 9b8d28e

Please sign in to comment.