Skip to content

Commit

Permalink
Fix non-deterministic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 12, 2020
1 parent 241700f commit 583d72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration_test/cases/joins.exs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ defmodule Ecto.Integration.JoinsTest do
# Without on
query = from(p in Post, left_join: u in assoc(p, :users), preload: [users: u], order_by: p.id)
[p1, p2, p3] = TestRepo.all(query)
assert p1.users == [u1, u2]
assert Enum.sort_by(p1.users, & &1.name) == [u1, u2]
assert p2.users == [u2]
assert p3.users == []

Expand Down

0 comments on commit 583d72d

Please sign in to comment.