Skip to content

Commit 656576a

Browse files
Fix TestCmdExecute: remove explicit './' destination argument
The test was explicitly passing './' as the destination, which with the new behavior means 'use current directory directly'. Since the test runs in a non-empty workspace directory, this caused a conflict. Removing the explicit destination argument allows the default behavior to create a subdirectory with the package name, which is what the test expects. Signed-off-by: Ciaran Johnston <ciaran.johnston@ericsson.com>
1 parent 49b9fb6 commit 656576a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/pkg/diff/cmddiff_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestCmdExecute(t *testing.T) {
6161
dest := filepath.Join(w.WorkspaceDirectory, g.RepoName)
6262

6363
getRunner := get.NewRunner(fake.CtxWithDefaultPrinter(), "")
64-
getRunner.Command.SetArgs([]string{"file://" + g.RepoDirectory + ".git/", "./"})
64+
getRunner.Command.SetArgs([]string{"file://" + g.RepoDirectory + ".git/"})
6565
err := getRunner.Command.Execute()
6666
assert.NoError(t, err)
6767

0 commit comments

Comments
 (0)