jc/db-migrate-orgs
Joe Chen 2023-11-03 22:35:33 -04:00
parent b332af5653
commit a18290d166
No known key found for this signature in database
GPG Key ID: 0BDE5280C552FF60
1 changed files with 3 additions and 0 deletions

View File

@ -440,6 +440,9 @@ func usersDeleteCustomAvatar(t *testing.T, ctx context.Context, db *users) {
avatar, err := public.Files.ReadFile("img/avatar_default.png")
require.NoError(t, err)
tempPictureAvatarUploadPath := filepath.Join(os.TempDir(), "orgsList-tempPictureAvatarUploadPath")
conf.SetMockPicture(t, conf.PictureOpts{AvatarUploadPath: tempPictureAvatarUploadPath})
avatarPath := userutil.CustomAvatarPath(alice.ID)
_ = os.Remove(avatarPath)
defer func() { _ = os.Remove(avatarPath) }()