Skip to content

Commit daad22d

Browse files
committed
fixed broken code
1 parent fedba50 commit daad22d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/executor_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestShakaExecutorRun(t *testing.T) {
3333
ctx := context.Background()
3434

3535
mockRunner := &MockCommandRunner{}
36-
mockRunner.On("CommandContext", ctx, "mock_binary", []string{""}).
36+
mockRunner.On("CommandContext", ctx, "mock_binary", []string{"\\ "}).
3737
Return(exec.Command("echo", "hello world"))
3838

3939
shaka := NewShakaPackager("mock_binary")
@@ -48,15 +48,15 @@ func TestShakaExecutorRun(t *testing.T) {
4848

4949
// then
5050
require.NoError(t, err)
51-
mockRunner.AssertCalled(t, "CommandContext", ctx, "mock_binary", []string{""})
51+
mockRunner.AssertCalled(t, "CommandContext", ctx, "mock_binary", []string{"\\ "})
5252
}
5353

5454
func TestShakaExecutorRunError(t *testing.T) {
5555
// given
5656
ctx := context.Background()
5757

5858
mockRunner := &MockCommandRunner{}
59-
mockRunner.On("CommandContext", ctx, "shaka-packager", []string{""}).
59+
mockRunner.On("CommandContext", ctx, "shaka-packager", []string{"\\ "}).
6060
Return(exec.Command("false"))
6161

6262
shaka := NewShakaPackager("shaka-packager")

0 commit comments

Comments
 (0)