diff --git a/internal/mockhelper/mockhelper.go b/internal/mockhelper/mockhelper.go index 0166df6..71521b2 100644 --- a/internal/mockhelper/mockhelper.go +++ b/internal/mockhelper/mockhelper.go @@ -195,8 +195,7 @@ func (mh *MockHelper) FilePathGlobOK(m *wrp.MockLimitedFilepath) *gomock.Call { // OSExecCommandContextCall mocks implementation of CommandContext method from LimitedOSExec interface func (mh *MockHelper) OSExecCommandContextCall(m *wrp.MockLimitedOSExec) *gomock.Call { - return m.EXPECT().CommandContext(gomock.Any(), - mh.OSEXECCommandContextName, mh.OSEXECCommandContextArgs) + return m.EXPECT().CommandContext(gomock.Any(), gomock.Any(), gomock.Any()) } // OSExecCommandContextOK mocks returning success from OSExecCommandContextCall diff --git a/pkg/powerpath/powerpath_test.go b/pkg/powerpath/powerpath_test.go index 7016f79..12c7259 100644 --- a/pkg/powerpath/powerpath_test.go +++ b/pkg/powerpath/powerpath_test.go @@ -203,6 +203,8 @@ busy: False stateSetter: func(fields ppFields) { _, cmdMock := mocks.OSExecCommandContextOK(fields.osexec) mocks.OSExecCmdOK(cmdMock) + _, cmdMock2 := mocks.OSExecCommandContextOK(fields.osexec) + mocks.OSExecCmdOK(cmdMock2) }, args: defaultArgs, want: true,