Skip to content

Commit 2897072

Browse files
committed
chore: update test
1 parent 0a30862 commit 2897072

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/aggregate_test.exs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,7 @@ defmodule AshSql.AggregateTest do
15801580
end
15811581
end
15821582

1583+
@tag :regression
15831584
test "filter and aggregate names do not collide with the same names" do
15841585
club = Ash.Seed.seed!(AshPostgres.Test.StandupClub, %{name: "Studio 54"})
15851586

@@ -1591,8 +1592,6 @@ defmodule AshSql.AggregateTest do
15911592
})
15921593
end)
15931594

1594-
# |> IO.inspect()
1595-
15961595
Enum.each(club_comedians, fn comedian ->
15971596
Range.new(1, Enum.random([2, 3, 4, 5, 6]))
15981597
|> Enum.each(fn joke_idx ->
@@ -1603,7 +1602,7 @@ defmodule AshSql.AggregateTest do
16031602
})
16041603

16051604
Range.new(1, Enum.random([2, 3, 4, 5, 6]))
1606-
|> Enum.each(fn idx ->
1605+
|> Enum.each(fn _idx ->
16071606
Ash.Seed.seed!(AshPostgres.Test.Punchline, %{joke_id: joke.id})
16081607
end)
16091608
end)
@@ -1618,7 +1617,7 @@ defmodule AshSql.AggregateTest do
16181617
})
16191618

16201619
Range.new(1, Enum.random([2, 3, 4, 5, 6]))
1621-
|> Enum.each(fn idx ->
1620+
|> Enum.each(fn _idx ->
16221621
Ash.Seed.seed!(AshPostgres.Test.Punchline, %{joke_id: joke.id})
16231622
end)
16241623
end)
@@ -1632,7 +1631,8 @@ defmodule AshSql.AggregateTest do
16321631
}
16331632
}
16341633
}
1634+
16351635
Ash.Query.filter_input(AshPostgres.Test.StandupClub, filter)
1636-
|> Ash.read!(load: [:punchline_count, comedians: [jokes: :punchline_count]])
1636+
|> Ash.read!(load: [:punchline_count])
16371637
end
16381638
end

0 commit comments

Comments
 (0)