Skip to content

Commit

Permalink
fix: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifosmin Simon authored and Lifosmin Simon committed Sep 12, 2023
1 parent 91b5c6c commit 7b13519
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Binary file added __debug_bin1717061674
Binary file not shown.
1 change: 1 addition & 0 deletions api/handler/v1beta1/grant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ func (s *GrpcHandlersSuite) TestListUserRoles() {
s.Nil(err) // Check that there are no errors.
s.grantService.AssertExpectations(s.T())
s.Equal(expectedResponse.Roles, res.Roles)
s.Equal(codes.OK, status.Code(err))

})
s.Run("should return unauthenticated user", func() {
Expand Down
6 changes: 0 additions & 6 deletions internal/store/postgres/grant_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ func (s *GrantRepositoryTestSuite) TestListUserRoles() {
s.Equal(actualResult, expectedRoles)
s.Nil(actualError)
})

s.Run("should return err", func() {
_, actualError := s.repository.ListUserRoles(context.Background(), "user")

s.Nil(actualError)
})
}

func (s *GrantRepositoryTestSuite) TestList() {
Expand Down

0 comments on commit 7b13519

Please sign in to comment.