Skip to content

Commit

Permalink
move params
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Jun 10, 2023
1 parent 2f10645 commit 738b435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func TestIssue532(t *testing.T) {

tempDir := t.TempDir()
dirFlag := "--dir=" + migrationsDir
params := []string{dirFlag, "sqlite3", filepath.Join(tempDir, "sql.db")}

tt := []struct {
command string
Expand All @@ -103,9 +102,10 @@ func TestIssue532(t *testing.T) {
}{
{"up", true, ""},
{"up", false, "goose: no migrations to run. current version: 3"},
{"version", false, "goose: version 3"},
}
for _, tc := range tt {
params = append(params, tc.command)
params := []string{dirFlag, "sqlite3", filepath.Join(tempDir, "sql.db"), tc.command}
got, err := runGoose(params...)
check.NoError(t, err)
if tc.skipCheck {
Expand Down

0 comments on commit 738b435

Please sign in to comment.