Skip to content

Commit

Permalink
update testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-hpe committed Dec 13, 2024
1 parent 7956a02 commit 0ef78df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/client/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func TestBrokerAPIService_GetMorpheusDetails(t *testing.T) {
// mock the context only since it is not validated in this function
m.EXPECT().getVersion().Return(999999)
m.EXPECT().prepareRequest(gomock.Any(), pathToken, method, nil, headers,
url.Values{}, url.Values{}, "", nil).
getURLValues(queryParams), url.Values{}, "", nil).
Return(nil, errors.New("error in prepare request"))
},
},
Expand Down Expand Up @@ -233,7 +233,7 @@ func TestBrokerAPIService_GetMorpheusDetails(t *testing.T) {
// mock the context only since it is not validated in this function
m.EXPECT().getVersion().Return(999999)
m.EXPECT().prepareRequest(gomock.Any(), pathToken, method, nil, headers,
url.Values{}, url.Values{}, "", nil).Return(reqToken, nil)
getURLValues(queryParams), url.Values{}, "", nil).Return(reqToken, nil)

m.EXPECT().callAPI(reqToken).Return(&http.Response{
StatusCode: 500,
Expand Down

0 comments on commit 0ef78df

Please sign in to comment.