Merge branch 'fix_erratic_participation_test' into 'develop'

fix flaky participation_test.exs

See merge request pleroma/pleroma!3689
This commit is contained in:
tusooa 2022-08-25 18:36:47 +00:00
commit 6f10f93d62

View file

@ -122,11 +122,11 @@ test "recreating an existing participations sets it to unread" do
end
test "it marks a participation as read" do
participation = insert(:participation, %{read: false})
participation = insert(:participation, %{updated_at: ~N[2017-07-17 17:09:58], read: false})
{:ok, updated_participation} = Participation.mark_as_read(participation)
assert updated_participation.read
assert updated_participation.updated_at == participation.updated_at
assert :gt = NaiveDateTime.compare(updated_participation.updated_at, participation.updated_at)
end
test "it marks a participation as unread" do