Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaliev committed Jan 30, 2024
1 parent bceeebb commit 3ce2d75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/utils2.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ const (
lensPoolSize = 2
)

const testJSONFile = "/test.json"

func init() {
// We use environment variables instead of flags `go test ./...` throws for all packages
// that don't have the flag defined
Expand Down Expand Up @@ -1411,7 +1413,7 @@ func backupExport(
action BackupExport,
) {
if action.Config.Filepath == "" {
action.Config.Filepath = s.t.TempDir() + "/test.json"
action.Config.Filepath = s.t.TempDir() + testJSONFile
}

var expectedErrorRaised bool
Expand All @@ -1437,7 +1439,7 @@ func backupImport(
action BackupImport,
) {
if action.Filepath == "" {
action.Filepath = s.t.TempDir() + "/test.json"
action.Filepath = s.t.TempDir() + testJSONFile
}

// we can avoid checking the error here as this would mean the filepath is invalid
Expand Down

0 comments on commit 3ce2d75

Please sign in to comment.