Replacing require.nil in api layer (#16906)
* Replacing require.nil in api layer * Fixing some tests * Fixing tests * Addressing PR review comments Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9992a27a90
Коммит
31a80a5351
@@ -246,7 +246,7 @@ func TestGetReactions(t *testing.T) {
|
||||
|
||||
for _, userReaction := range userReactions {
|
||||
reaction, err := th.App.Srv().Store.Reaction().Save(userReaction)
|
||||
require.Nil(t, err)
|
||||
require.NoError(t, err)
|
||||
reactions = append(reactions, reaction)
|
||||
}
|
||||
|
||||
@@ -597,7 +597,7 @@ func TestGetBulkReactions(t *testing.T) {
|
||||
for _, userReaction := range userReactions {
|
||||
reactions := expectedPostIdsReactionsMap[userReaction.PostId]
|
||||
reaction, err := th.App.Srv().Store.Reaction().Save(userReaction)
|
||||
require.Nil(t, err)
|
||||
require.NoError(t, err)
|
||||
reactions = append(reactions, reaction)
|
||||
expectedPostIdsReactionsMap[userReaction.PostId] = reactions
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user