Skip to content

Commit

Permalink
Trying to find error in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjos committed Jun 14, 2024
1 parent b5e6a4e commit 35bbea7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
test:
name: Elixir ${{matrix.elixir}} / OTP ${{matrix.otp}}
runs-on: ubuntu-24.04
runs-on: ubuntu-20.04

strategy:
matrix:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule Absinthe.Phase.Document.Validation.Utils.MessageSuggestions do
Generate an suggestions message for a incorrect field
"""
def suggest_message(suggestions) do
IO.inspect({"suggest_message", suggestions})
" Did you mean " <> to_quoted_or_list(suggestions |> Enum.take(@suggest)) <> "?"
end

Expand Down
5 changes: 4 additions & 1 deletion test/support/validation_phase_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ defmodule Absinthe.ValidationPhaseCase do

defp node_check_function(check) when is_list(check) do
fn node ->
Enum.all?(check, fn {key, value} -> Map.get(node, key) == value end)
result = Enum.all?(check, fn {key, value} -> Map.get(node, key) == value end)
IO.inspect({"node_check", check, result})
result
end
end

Expand Down Expand Up @@ -197,6 +199,7 @@ defmodule Absinthe.ValidationPhaseCase do
defp error_pairs(input) do
input
|> nodes_with_errors()
|> IO.inspect()
|> Enum.flat_map(fn %{errors: errors} = node ->
Enum.map(errors, &{node, &1})
end)
Expand Down

0 comments on commit 35bbea7

Please sign in to comment.