summaryrefslogtreecommitdiffstats
path: root/api4/emoji_test.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-06-28 23:06:45 -0400
committerSaturnino Abril <saturnino.abril@gmail.com>2017-06-29 11:06:45 +0800
commit520cedea16c3a4c71c2d11ede89c6a50a81ff8db (patch)
treebe9ed4563b6a249d7f0ac4df632162b5d90b887f /api4/emoji_test.go
parent9e600fcdccabfc55b85c026eda5eedab5bc91152 (diff)
downloadchat-520cedea16c3a4c71c2d11ede89c6a50a81ff8db.tar.gz
chat-520cedea16c3a4c71c2d11ede89c6a50a81ff8db.tar.bz2
chat-520cedea16c3a4c71c2d11ede89c6a50a81ff8db.zip
PLT-6909 Remove deleted emojis from cache (#6757)
* PLT-6909 Remove deleted emojis from cache * Fixed unit tests
Diffstat (limited to 'api4/emoji_test.go')
-rw-r--r--api4/emoji_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/api4/emoji_test.go b/api4/emoji_test.go
index 84d808e6d..dcd6dddb7 100644
--- a/api4/emoji_test.go
+++ b/api4/emoji_test.go
@@ -251,11 +251,11 @@ func TestDeleteEmoji(t *testing.T) {
// Try to delete just deleted emoji
_, resp = Client.DeleteEmoji(newEmoji.Id)
- CheckInternalErrorStatus(t, resp)
+ CheckNotFoundStatus(t, resp)
//Try to delete non-existing emoji
_, resp = Client.DeleteEmoji(model.NewId())
- CheckInternalErrorStatus(t, resp)
+ CheckNotFoundStatus(t, resp)
//Try to delete without Id
_, resp = Client.DeleteEmoji("")
@@ -297,7 +297,7 @@ func TestGetEmoji(t *testing.T) {
}
_, resp = Client.GetEmoji(model.NewId())
- CheckInternalErrorStatus(t, resp)
+ CheckNotFoundStatus(t, resp)
}
func TestGetEmojiImage(t *testing.T) {
@@ -413,7 +413,7 @@ func TestGetEmojiImage(t *testing.T) {
CheckNotFoundStatus(t, resp)
_, resp = Client.GetEmojiImage(model.NewId())
- CheckInternalErrorStatus(t, resp)
+ CheckNotFoundStatus(t, resp)
_, resp = Client.GetEmojiImage("")
CheckBadRequestStatus(t, resp)