Remove GetSignedInUserWithCacheCtx and GetSignedInUser from sqlstore (#59551)

* Remove GetSignedInUserWithCacheCtx and GetSignedInUser from sqlstore

* Delete removed method from test
This commit is contained in:
idafurjes
2022-11-30 14:28:51 +01:00
committed by GitHub
parent 0fca3cf9dd
commit d6275c58dd
6 changed files with 18 additions and 143 deletions

View File

@@ -401,9 +401,6 @@ func TestIntegrationOrgUserDataAccess(t *testing.T) {
err = orgUserStore.RemoveOrgUser(context.Background(), &remCmd)
require.NoError(t, err)
require.True(t, remCmd.UserWasDeleted)
err = ss.GetSignedInUser(context.Background(), &models.GetSignedInUserQuery{UserId: ac2.ID})
require.Equal(t, err, user.ErrUserNotFound)
})
t.Run("Cannot delete last admin org user", func(t *testing.T) {