Skip to content

Commit

Permalink
feat: fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kasper J. Hermansen <[email protected]>
  • Loading branch information
kjuulh committed Oct 20, 2023
1 parent 8572765 commit 445d3e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ something masterly
"shuttle/cmd/testdata/wrong-project-local/plan: no such file or directory",
),
initErr: errors.New(
`failed to copy plan to .shuttle/plan, make sure the upstream plan exists
err: stat /Users/kah/git/github.com/lunarway/shuttle/cmd/testdata/wrong-project-local/plan: no such file or directory`,
`failed to copy plan to .shuttle/plan, make sure the upstream plan exists`,
),
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/shuttleplan.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func handleFilePath(plan string, projectPath string) (string, error) {
ignorelist := []string{".git", ".shuttle"}
err := copy.Dir(plan, toPath, ignorelist)
if err != nil {
return "", fmt.Errorf("failed to copy plan to .shuttle/plan, make sure the upstream plan exists\n\terr: %w", err)
return "", fmt.Errorf("failed to copy plan to .shuttle/plan, make sure the upstream plan exists")
}
return toPath, nil
}
Expand Down

0 comments on commit 445d3e6

Please sign in to comment.