diff --git a/plugin/external/pluginEntry_test.go b/plugin/external/pluginEntry_test.go index 0828aff48..3089a4bf6 100644 --- a/plugin/external/pluginEntry_test.go +++ b/plugin/external/pluginEntry_test.go @@ -954,7 +954,7 @@ func (suite *ExternalPluginEntryTestSuite) TestExec() { ctx := context.Background() mockRunAndWait := func(cmd []string, startErr, waitErr error, exitCode int) { mockInv := &mockedInvocation{Command: NewCommand(ctx, "")} - args := []interface{}{ctx, "exec", entry, append([]string{`{"tty":false,"elevate":false,"stdin":false}`}, cmd...)} + args := []interface{}{ctx, "exec", entry, append([]string{`{"tty":false,"elevate":false,"WorkingDir":"","stdin":false}`}, cmd...)} mockScript.On("NewInvocation", args...).Return(mockInv).Once() mockInv.MockExec(startErr, waitErr, exitCode) }