Fixed some ineffective assignments (#12543)
Этот коммит содержится в:
коммит произвёл
Eli Yukelzon
родитель
eebe1fc290
Коммит
20ff7032a6
@@ -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)
|
||||
|
||||
Ссылка в новой задаче
Block a user