Skip to content

Commit

Permalink
more sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermsi1337 committed Feb 14, 2025
1 parent c06a009 commit b84ca12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/pkg/source/mysqltest/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const tableName = "testTable"

// mysql and psql are a bit picky when it comes to localhost, use ip instead
const hostName = "127.0.0.1"
const logString = "ready for connections"
const logString = "** Starting MySQL **"
const mysqlImage = "docker.io/bitnami/mysql:5.7"

type MySQLDumpAndRestoreTestSuite struct {
Expand Down Expand Up @@ -217,6 +217,8 @@ func mySQLDoBackup(
}
}()

time.Sleep(time.Second * 10)

// establish connection
backupConnectionString := fmt.Sprintf(
"%s:%s@tcp(%s:%s)/%s?tls=false",
Expand All @@ -232,9 +234,7 @@ func mySQLDoBackup(
log.WithError(dbErr).Error("failed to close connection to mysql backup database")
}
}()
// sleep to give mysql server time to get ready
time.Sleep(5 * time.Second)


// create table for test data
_, createTableErr := db.Exec(
fmt.Sprintf(
Expand Down

0 comments on commit b84ca12

Please sign in to comment.