Skip to content

Commit b6cb742

Browse files
committed
hopefully fix backup finally
1 parent 1de16d3 commit b6cb742

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ build:
2222
-a main.go
2323

2424
test:
25-
go test -v ./...
25+
go test -count=1 -failfast -v ./...
2626

2727
lintci:
2828
docker run --rm \

test/pkg/source/mysqltest/mysql_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const sqlPort = "3306/tcp"
2828
const backupPath = "/tmp/test.sqldump"
2929
const backupPathZip = "/tmp/test.sqldump.gz"
3030
const mySQLRootPW = "mysqlroot"
31-
const mySQLDatabase = "mysql"
31+
const mySQLDatabase = "testdatabase"
3232
const mySQLUser = "mysqluser"
3333
const mySQLRoot = "root"
3434
const mySQLPw = "mysql"
@@ -310,9 +310,9 @@ func mySQLDoRestore(
310310
time.Sleep(10 * time.Second)
311311

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

318318
// establish connection for retrieving restored data

0 commit comments

Comments
 (0)