From 32d3e497c3612bd046afe9679f9e0b463a19c072 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 21 Mar 2020 20:05:02 +1100 Subject: [PATCH] fix tests --- pkg/commands/git_test.go | 4 ++-- 1 file 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})) }) } }