chore: make test assertion clearer to debug CI

This commit is contained in:
Zach Daniel 2024-08-08 10:01:33 -04:00
parent cdd94a8b93
commit cc7a761512

View file

@ -616,11 +616,12 @@ defmodule AshSql.AggregateTest do
|> Ash.Changeset.manage_relationship(:post, post, type: :append_and_remove) |> Ash.Changeset.manage_relationship(:post, post, type: :append_and_remove)
|> Ash.create!() |> Ash.create!()
assert %{first_comment_nils_first_include_nil: "match"} = assert "match" ==
Post Post
|> Ash.Query.filter(id == ^post.id) |> Ash.Query.filter(id == ^post.id)
|> Ash.Query.load(:first_comment_nils_first_include_nil) |> Ash.Query.load(:first_comment_nils_first_include_nil)
|> Ash.read_one!() |> Ash.read_one!()
|> Map.get(:first_comment_nils_first_include_nil)
end end
test "it can be sorted on" do test "it can be sorted on" do