Skip to content

Commit

Permalink
hopefully fix backup finally
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermsi1337 committed Feb 14, 2025
1 parent 1de16d3 commit b6cb742
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ build:
-a main.go

test:
go test -v ./...
go test -count=1 -failfast -v ./...

lintci:
docker run --rm \
Expand Down
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 @@ -28,7 +28,7 @@ const sqlPort = "3306/tcp"
const backupPath = "/tmp/test.sqldump"
const backupPathZip = "/tmp/test.sqldump.gz"
const mySQLRootPW = "mysqlroot"
const mySQLDatabase = "mysql"
const mySQLDatabase = "testdatabase"
const mySQLUser = "mysqluser"
const mySQLRoot = "root"
const mySQLPw = "mysql"
Expand Down Expand Up @@ -310,9 +310,9 @@ func mySQLDoRestore(
time.Sleep(10 * time.Second)

// restore server from mysqldump
doBackupErr := source.DoBackupForKind(ctx, dumpKind, false, useRestic, false, false)
if doBackupErr != nil {
return []TestStruct{}, errors.Wrap(doBackupErr, "failed to restore mysql backup container")
doRestoreErr := source.DoRestoreForKind(ctx, restoreKind, false, useRestic)
if doRestoreErr != nil {
return []TestStruct{}, errors.Wrap(doRestoreErr, "failed to restore mysql backup container")
}

// establish connection for retrieving restored data
Expand Down

0 comments on commit b6cb742

Please sign in to comment.