diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-21 20:05:02 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-25 09:39:04 +1100 |
commit | 32d3e497c3612bd046afe9679f9e0b463a19c072 (patch) | |
tree | 43fa1a5c628054b335423f9c0952dd0dd20398e5 /pkg | |
parent | 30a5d1b486edaab21add811ee1531a6abd621cfe (diff) |
fix tests
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/commands/git_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go index 8070d9610..9bee3613e 100644 --- a/pkg/commands/git_test.go +++ b/pkg/commands/git_test.go @@ -628,7 +628,7 @@ func TestGitCommandResetToCommit(t *testing.T) { return exec.Command("echo") } - assert.NoError(t, gitCmd.ResetToCommit("78976bc", "hard")) + assert.NoError(t, gitCmd.ResetToCommit("78976bc", "hard", RunCommandOptions{})) } // TestGitCommandNewBranch is a function. @@ -1439,7 +1439,7 @@ func TestGitCommandCheckout(t *testing.T) { t.Run(s.testName, func(t *testing.T) { gitCmd := NewDummyGitCommand() gitCmd.OSCommand.command = s.command - s.test(gitCmd.Checkout("test", s.force)) + s.test(gitCmd.Checkout("test", CheckoutOptions{Force: s.force})) }) } } |