File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ func TestMain(m *testing.M) {
2323 os .Exit (1 )
2424 }
2525
26+ // Debug: Log that TestMain is running
27+ os .Stderr .WriteString (fmt .Sprintf ("TestMain: Starting with DOCKER_IMAGE='%s'\n " , dockerImage ))
28+
2629 // Check if we're testing TiDB (format: tidb:VERSION)
2730 // TiDB requires multi-container setup
2831 if strings .HasPrefix (dockerImage , "tidb:" ) {
@@ -78,6 +81,8 @@ func TestMain(m *testing.M) {
7881 os .Setenv ("MYSQL_ENDPOINT" , sharedContainer .Endpoint )
7982 os .Setenv ("MYSQL_USERNAME" , sharedContainer .Username )
8083 os .Setenv ("MYSQL_PASSWORD" , sharedContainer .Password )
84+ // Debug: Log that environment variables are set
85+ os .Stderr .WriteString (fmt .Sprintf ("TestMain: Set MYSQL_ENDPOINT='%s'\n " , sharedContainer .Endpoint ))
8186 } else {
8287 // This should never happen, but if it does, fail loudly
8388 os .Stderr .WriteString (fmt .Sprintf ("ERROR: startSharedMySQLContainer returned nil container without error for image '%s'\n " , dockerImage ))
You can’t perform that action at this time.
0 commit comments