File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ var mysqlFlight singleflight.Group
1616var mysqlURI string
1717
1818// StartMySQLServer starts an existing MySQL installation natively (without Docker).
19- // This is intended for CI environments like GitHub Actions where Docker may not be available
20- // but MySQL can be installed via the services directive.
2119func StartMySQLServer (ctx context.Context ) (string , error ) {
2220 if err := Supported (); err != nil {
2321 return "" , err
@@ -44,7 +42,7 @@ func StartMySQLServer(ctx context.Context) (string, error) {
4442}
4543
4644func startMySQLServer (ctx context.Context ) (string , error ) {
47- // Standard URI for test MySQL (matches GitHub Actions MySQL service default)
45+ // Standard URI for test MySQL
4846 uri := "root:mysecretpassword@tcp(localhost:3306)/mysql?multiStatements=true&parseTime=true"
4947
5048 // Try to connect first - it might already be running
@@ -81,7 +79,7 @@ func startMySQLServer(ctx context.Context) (string, error) {
8179 waitCtx , cancel := context .WithTimeout (ctx , 30 * time .Second )
8280 defer cancel ()
8381
84- // Try with password first (GitHub Actions MySQL service has password)
82+ // Try with password first
8583 if err := waitForMySQL (waitCtx , uri , 15 * time .Second ); err == nil {
8684 return uri , nil
8785 }
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ var postgresFlight singleflight.Group
1616var postgresURI string
1717
1818// StartPostgreSQLServer starts an existing PostgreSQL installation natively (without Docker).
19- // This is intended for CI environments like GitHub Actions where Docker may not be available
20- // but PostgreSQL can be installed via the services directive.
2119func StartPostgreSQLServer (ctx context.Context ) (string , error ) {
2220 if err := Supported (); err != nil {
2321 return "" , err
You can’t perform that action at this time.
0 commit comments