Skip to content

Commit f0f1626

Browse files
authored
test: Fix future comment calculation test (#719)
1 parent c180248 commit f0f1626

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/calculation_test.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,10 @@ defmodule AshPostgres.CalculationTest do
504504
|> Ash.create!()
505505

506506
Comment
507-
|> Ash.Changeset.for_create(:create, %{title: "comment"})
507+
|> Ash.Changeset.for_create(:create, %{
508+
title: "comment",
509+
created_at: DateTime.add(DateTime.utc_now(), 1, :day)
510+
})
508511
|> Ash.Changeset.manage_relationship(:post, post, type: :append_and_remove)
509512
|> Ash.create!()
510513

0 commit comments

Comments
 (0)