diff --git a/api/handler/v1beta1/grant_test.go b/api/handler/v1beta1/grant_test.go index 0185cdeeb..4fc291fa5 100644 --- a/api/handler/v1beta1/grant_test.go +++ b/api/handler/v1beta1/grant_test.go @@ -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() { diff --git a/internal/store/postgres/grant_repository_test.go b/internal/store/postgres/grant_repository_test.go index 04fba66d0..dd949240b 100644 --- a/internal/store/postgres/grant_repository_test.go +++ b/internal/store/postgres/grant_repository_test.go @@ -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() {