From 55d9b9553795f73394af7c6dfe28203c6db4ae54 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 27 Feb 2025 13:27:57 -0500 Subject: [PATCH] test: add tenant in aggregate test --- test/aggregate_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/aggregate_test.exs b/test/aggregate_test.exs index d451f549..567edd10 100644 --- a/test/aggregate_test.exs +++ b/test/aggregate_test.exs @@ -91,8 +91,8 @@ defmodule AshSql.AggregateTest do assert Ash.load!(user, :count_visited, tenant: "org_#{org.id}") |> then(& &1.count_visited) == 4 - assert Ash.load!(org, :total_posts) - |> then(& &1.total_posts) == 4 + assert Ash.load!(org, :total_posts, tenant: "org_#{org.id}") + |> then(& &1.total_posts) == 0 assert Ash.load!(org, :total_users_posts, tenant: "org_#{org.id}") |> then(& &1.total_users_posts) == 4