Skip to content

Commit 9e5ce55

Browse files
committed
fix missing skip test when there is no DB available
1 parent 2f7015e commit 9e5ce55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

driver_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -3539,6 +3539,9 @@ func TestConnectionAttributes(t *testing.T) {
35393539
}
35403540

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

0 commit comments

Comments
 (0)