Skip to content

Commit 55d9b95

Browse files
committed
test: add tenant in aggregate test
1 parent f70cd70 commit 55d9b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/aggregate_test.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ defmodule AshSql.AggregateTest do
9191
assert Ash.load!(user, :count_visited, tenant: "org_#{org.id}")
9292
|> then(& &1.count_visited) == 4
9393

94-
assert Ash.load!(org, :total_posts)
95-
|> then(& &1.total_posts) == 4
94+
assert Ash.load!(org, :total_posts, tenant: "org_#{org.id}")
95+
|> then(& &1.total_posts) == 0
9696

9797
assert Ash.load!(org, :total_users_posts, tenant: "org_#{org.id}")
9898
|> then(& &1.total_users_posts) == 4

0 commit comments

Comments
 (0)