Revert "chore: fix tests"

This reverts commit 67305a6ec8.
This commit is contained in:
Zach Daniel 2023-04-06 09:38:21 -04:00
parent 67305a6ec8
commit 80616781d6
2 changed files with 3 additions and 2 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,7 +309,8 @@ defmodule Ash.Test.Resource.Relationships.BelongsToTest do
%Ash.Error.Invalid{
changeset: %{
errors: [
%{path: [:post]} | _
# there should not be a Ash.Error.Changes.Required error in this list
%Ash.Error.Invalid{path: [:post]}
]
}
}} =