From 68b8b459296a1b9422a2e8a858f417417bebfbcf Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 3 Jun 2020 18:19:46 +0200 Subject: [PATCH] use ElementsMatch --- integrations/api_issue_reaction_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/integrations/api_issue_reaction_test.go b/integrations/api_issue_reaction_test.go index 3e6e03869f250..ab3de7c11625f 100644 --- a/integrations/api_issue_reaction_test.go +++ b/integrations/api_issue_reaction_test.go @@ -29,10 +29,7 @@ func TestAPIAllowedReactions(t *testing.T) { DecodeJSON(t, resp, &a) assert.Len(t, *a, len(setting.UI.Reactions)) - - for _, r := range *a { - assert.True(t, setting.UI.ReactionsMap[r]) - } + assert.ElementsMatch(t, setting.UI.Reactions, *a) } func TestAPIIssuesReactions(t *testing.T) {