chore: fix tests

This commit is contained in:
Zach Daniel 2023-04-06 09:32:10 -04:00
parent 92208d8f84
commit 67305a6ec8
2 changed files with 2 additions and 3 deletions

View file

@ -370,7 +370,7 @@ defmodule Ash.Error do
%{error | stacktrace: stacktrace || fake_stacktrace()}
end
defp fake_stacktrace() do
defp fake_stacktrace do
{:current_stacktrace, stacktrace} = Process.info(self(), :current_stacktrace)
%Stacktrace{stacktrace: Enum.drop(stacktrace, 2)}
end

View file

@ -309,8 +309,7 @@ defmodule Ash.Test.Resource.Relationships.BelongsToTest do
%Ash.Error.Invalid{
changeset: %{
errors: [
# there should not be a Ash.Error.Changes.Required error in this list
%Ash.Error.Invalid{path: [:post]}
%{path: [:post]} | _
]
}
}} =