From 19ea2020ea036c475718907aca8257eb52b92459 Mon Sep 17 00:00:00 2001 From: Joey Bolduc-Gilbert Date: Fri, 22 Sep 2023 11:41:17 -0400 Subject: [PATCH] Fix test in erlang 26 --- .../requests/project_integrations_request_test.exs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/graphql/requests/project_integrations_request_test.exs b/test/graphql/requests/project_integrations_request_test.exs index cc15aee8e..2190add8d 100644 --- a/test/graphql/requests/project_integrations_request_test.exs +++ b/test/graphql/requests/project_integrations_request_test.exs @@ -99,10 +99,10 @@ defmodule AccentTest.GraphQL.Requests.ProjectIntegrations do assert Repo.all(Integration) == [] assert get_in(data, [:data, "createProjectIntegration", "successful"]) === false - assert get_in(data, [:data, "createProjectIntegration", "messages"]) === [ - %{"code" => "required", "field" => "data.defaultRef"}, - %{"code" => "required", "field" => "data.repository"}, - %{"code" => "required", "field" => "data.token"} - ] + errors = get_in(data, [:data, "createProjectIntegration", "messages"]) + assert length(errors) === 3 + assert %{"code" => "required", "field" => "data.defaultRef"} in errors + assert %{"code" => "required", "field" => "data.repository"} in errors + assert %{"code" => "required", "field" => "data.token"} in errors end end