Fixed some ineffective assignments (#12543)

Этот коммит содержится в:
Agniva De Sarker
2019-10-03 18:15:27 +05:30
коммит произвёл Eli Yukelzon
родитель eebe1fc290
Коммит 20ff7032a6
16 изменённых файлов: 35 добавлений и 11 удалений

Просмотреть файл

@@ -14,6 +14,7 @@ import (
"github.com/mattermost/mattermost-server/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestCreateEmoji(t *testing.T) {
@@ -238,10 +239,8 @@ func TestGetEmojiList(t *testing.T) {
found = true
break
}
if found {
t.Fatalf("should not get a deleted emoji %v", emojis[0].Id)
}
}
require.Falsef(t, found, "should not get a deleted emoji %v", emojis[0].Id)
listEmoji, resp = Client.GetEmojiList(0, 1)
CheckNoError(t, resp)