Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestValidateRemoteEnv_EmptyKey(t *testing.T) {

func TestNewExecCmd_RequiresWorkspaceFolderOrContainerID(t *testing.T) {
execCmd := NewExecCmd(&flags.GlobalFlags{})
execCmd.SetArgs([]string{"--", "echo", "hello"})
execCmd.SetArgs([]string{"--", testCmdEcho, testCmdHello})
err := execCmd.Execute()
require.Error(t, err)
assert.Contains(t, err.Error(), "either --workspace-folder or --container-id must be provided")
Expand Down Expand Up @@ -97,7 +97,7 @@ func TestExecCmd_NonExistentContainerID(t *testing.T) {
GlobalFlags: &flags.GlobalFlags{},
ContainerID: "nonexistent-container-id-12345",
}
err := cmd.runWithContainerID(t.Context(), []string{"echo", "hello"})
err := cmd.runWithContainerID(t.Context(), []string{testCmdEcho, testCmdHello})
require.Error(t, err)
assert.Contains(t, err.Error(), "nonexistent-container-id-12345")
}
Expand Down
5 changes: 0 additions & 5 deletions cmd/runusercommands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ const (
flagContainerID = "--container-id"
testContainerID = "abc"
testContainerIDHex = "abc123"
hookOnCreate = "onCreateCommand"
hookUpdateContent = "updateContentCommand"
hookPostCreate = "postCreateCommand"
hookPostStart = "postStartCommand"
hookPostAttach = "postAttachCommand"
)

func TestNewRunUserCommandsCmd_CommandName(t *testing.T) {
Expand Down
Loading
Loading