diff --git a/test/actions/read_test.exs b/test/actions/read_test.exs index 93d56e9f..4a6771de 100644 --- a/test/actions/read_test.exs +++ b/test/actions/read_test.exs @@ -138,25 +138,27 @@ defmodule Ash.Test.Actions.ReadTest do describe "around_transaction/2" do test "it runs around the action" do - Post - |> new(%{title: "test", contents: "yeet"}) - |> Api.create!() - |> strip_metadata() + Post + |> new(%{title: "test", contents: "yeet"}) + |> Api.create!() + |> strip_metadata() assert {:ok, [_]} = Post |> Ash.Query.around_transaction(fn query, callback -> send(self(), :around_transaction_start) - {:ok, results} = callback.(query) + {:ok, results} = callback.(query) send(self(), :around_transaction_end) {:ok, results} - end) + end) |> Ash.Query.before_action(fn query -> send(self(), :before_action) query - end) + end) |> Api.read() - assert {:messages, [:around_transaction_start, :before_action, :around_transaction_end]} = :erlang.process_info(self(), :messages) + + assert {:messages, [:around_transaction_start, :before_action, :around_transaction_end]} = + :erlang.process_info(self(), :messages) end end