From 9e5ce55596f40724051b19ddda8cec8ead24c253 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Wed, 5 Jun 2024 16:33:05 +0900 Subject: [PATCH] fix missing skip test when there is no DB available --- driver_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver_test.go b/driver_test.go index 4fd196d4b..24d73c34f 100644 --- a/driver_test.go +++ b/driver_test.go @@ -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 {