test(avatar): deleting a user avatar is idempotent

If the avatar file in storage does not exist, it is not an error and
the database can be updated.

See 1be797faba Fix bug on avatar

(cherry picked from commit d2c4d833f4)
This commit is contained in:
Earl Warren 2024-06-05 09:10:42 +02:00
parent 32d8ada0e7
commit cf2d8b57ae
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 62 additions and 29 deletions

View file

@ -11,9 +11,9 @@ import (
)
func Test_discardStorage(t *testing.T) {
tests := []discardStorage{
tests := []DiscardStorage{
UninitializedStorage,
discardStorage("empty"),
DiscardStorage("empty"),
}
for _, tt := range tests {
t.Run(string(tt), func(t *testing.T) {