diff options
author | Nick Thomas <nick@gitlab.com> | 2019-05-22 12:28:25 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-05-22 12:28:25 +0000 |
commit | 48142b98ca9565698632c44e72e29e22b9c923c3 (patch) | |
tree | f2d007cb411667045ffc26278d7345bf19f362e9 /go/internal/command/fallback/fallback_test.go | |
parent | 58d8c7691ac52c00dfebe2154e793c8fccc46aa0 (diff) | |
parent | b77a375205af394945de99c3f7318292510c3245 (diff) | |
download | gitlab-shell-48142b98ca9565698632c44e72e29e22b9c923c3.tar.gz |
Merge branch 'id-go-refactorings' into 'master'
Refactor execution and parsing logic in Go's implementation
See merge request gitlab-org/gitlab-shell!302
Diffstat (limited to 'go/internal/command/fallback/fallback_test.go')
-rw-r--r-- | go/internal/command/fallback/fallback_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/go/internal/command/fallback/fallback_test.go b/go/internal/command/fallback/fallback_test.go index 2d67b14..afd752b 100644 --- a/go/internal/command/fallback/fallback_test.go +++ b/go/internal/command/fallback/fallback_test.go @@ -49,7 +49,7 @@ func TestExecuteExecsCommandSuccesfully(t *testing.T) { fake.Setup() defer fake.Cleanup() - require.NoError(t, cmd.Execute(nil)) + require.NoError(t, cmd.Execute()) require.True(t, fake.Called) require.Equal(t, fake.Filename, "/tmp/bin/gitlab-shell-ruby") require.Equal(t, fake.Args, []string{"/tmp/bin/gitlab-shell-ruby", "foo", "bar"}) @@ -64,12 +64,12 @@ func TestExecuteExecsCommandOnError(t *testing.T) { fake.Setup() defer fake.Cleanup() - require.Error(t, cmd.Execute(nil)) + require.Error(t, cmd.Execute()) require.True(t, fake.Called) } func TestExecuteGivenNonexistentCommand(t *testing.T) { cmd := &Command{RootDir: "/tmp/does/not/exist", Args: fakeArgs} - require.Error(t, cmd.Execute(nil)) + require.Error(t, cmd.Execute()) } |