diff --git a/internal/daemon/controller/handlers/authmethods/grants_test.go b/internal/daemon/controller/handlers/authmethods/grants_test.go index c3d6af8d7..28a19ff4e 100644 --- a/internal/daemon/controller/handlers/authmethods/grants_test.go +++ b/internal/daemon/controller/handlers/authmethods/grants_test.go @@ -1003,7 +1003,7 @@ func TestGrants_Update(t *testing.T) { }) if expectedOutput.wantErr != nil { require.ErrorIs(t, err, expectedOutput.wantErr) - return + continue } require.NoError(t, err) handlers.TestAssertOutputFields(t, resp.Item, expectedOutput.wantOutfields) diff --git a/internal/daemon/controller/handlers/managed_groups/grants_test.go b/internal/daemon/controller/handlers/managed_groups/grants_test.go index 3f48a7805..39f242f31 100644 --- a/internal/daemon/controller/handlers/managed_groups/grants_test.go +++ b/internal/daemon/controller/handlers/managed_groups/grants_test.go @@ -837,7 +837,7 @@ func TestGrants_WriteActions(t *testing.T) { got, err := s.CreateManagedGroup(fullGrantAuthCtx, item) if wantErr != nil { require.ErrorIs(t, err, wantErr) - return + continue } require.NoError(t, err) require.NotNil(t, got) @@ -982,7 +982,7 @@ func TestGrants_WriteActions(t *testing.T) { got, err := s.CreateManagedGroup(fullGrantAuthCtx, item) if wantErr != nil { require.ErrorIs(t, err, wantErr) - return + continue } require.NoError(t, err) require.NotNil(t, got)