summaryrefslogtreecommitdiff
path: root/cmd/gitlab-shell-authorized-principals-check/command/command_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gitlab-shell-authorized-principals-check/command/command_test.go')
-rw-r--r--cmd/gitlab-shell-authorized-principals-check/command/command_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/gitlab-shell-authorized-principals-check/command/command_test.go b/cmd/gitlab-shell-authorized-principals-check/command/command_test.go
index b6a89f5..2ca2125 100644
--- a/cmd/gitlab-shell-authorized-principals-check/command/command_test.go
+++ b/cmd/gitlab-shell-authorized-principals-check/command/command_test.go
@@ -37,7 +37,7 @@ func TestNew(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.desc, func(t *testing.T) {
- command, err := cmd.New(tc.executable, tc.arguments, tc.env, tc.config, nil)
+ command, err := cmd.New(tc.arguments, tc.config, nil)
require.NoError(t, err)
require.IsType(t, tc.expectedType, command)
@@ -64,7 +64,7 @@ func TestParseSuccess(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.desc, func(t *testing.T) {
- result, err := cmd.Parse(tc.executable, tc.arguments, tc.env)
+ result, err := cmd.Parse(tc.arguments)
if !tc.expectError {
require.NoError(t, err)
@@ -106,7 +106,7 @@ func TestParseFailure(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.desc, func(t *testing.T) {
- _, err := cmd.Parse(tc.executable, tc.arguments, tc.env)
+ _, err := cmd.Parse(tc.arguments)
require.EqualError(t, err, tc.expectedError)
})