Skip to content

Commit

Permalink
test(appeal): add fix for failing test case (#176)
Browse files Browse the repository at this point in the history
fix: add fix for failing test case

Co-authored-by: anjali.agarwal <[email protected]>
  • Loading branch information
anjali9791 and anjaliagg9791 authored Aug 26, 2024
1 parent 2461f9e commit be2d47c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/appeal/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,13 @@ func (s *ServiceTestSuite) TestCreate() {
h.mockProviderService.EXPECT().
GetPermissions(mock.Anything, mock.Anything, mock.AnythingOfType("string"), "role_id").
Return([]interface{}{"test-permission-1"}, nil)
h.mockIAMManager.EXPECT().
ParseConfig(mock.Anything).Return(nil, nil)
h.mockIAMManager.EXPECT().
GetClient(mock.Anything).Return(h.mockIAMClient, nil)

h.mockIAMClient.EXPECT().
GetUser(accountID).Return(nil, errors.New("404 not found")).Once()
actualError := h.service.Create(context.Background(), appeals)
s.NotNil(actualError)
time.Sleep(time.Millisecond)
Expand Down

0 comments on commit be2d47c

Please sign in to comment.