diff --git a/test/atomics_test.exs b/test/atomics_test.exs index 97025cb..48d7751 100644 --- a/test/atomics_test.exs +++ b/test/atomics_test.exs @@ -304,8 +304,6 @@ defmodule AshPostgres.AtomicsTest do |> Ash.Changeset.for_create(:create, %{post_id: post.id, title: "foo"}) |> Ash.create!() - Logger.configure(level: :debug) - assert_raise Ash.Error.Invalid, ~r/Can only delete if Post has no comments/, fn -> post |> Ash.Changeset.for_update(:update_if_no_comments, %{title: "bar"}) diff --git a/test/support/resources/post.ex b/test/support/resources/post.ex index 79299df..3dbd324 100644 --- a/test/support/resources/post.ex +++ b/test/support/resources/post.ex @@ -22,9 +22,9 @@ defmodule HasNoComments do [ {:atomic, [], expr( - # length(list(comments, field: :id)) > 0 or - # count(comments) > 0 or - exists(comments, true) + length(list(comments, field: :id)) > 0 or + count(comments) > 0 or + exists(comments, true) ), expr( error(^Ash.Error.Changes.InvalidChanges, %{