Skip to content

Commit

Permalink
fix: Round time in test to prevent flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
buntine committed Oct 17, 2024
1 parent c618893 commit b331a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def create_comments_and_destroy_post
Hoardable.on(deleted_at) { comment.destroy! }

assert_equal Comment.all.size, 0
assert_equal CommentVersion.where(hoardable_id: comment.id).first._during.max, deleted_at
assert_equal CommentVersion.where(hoardable_id: comment.id).first._during.max.round, deleted_at.round
end

test "will error if the upper bound of the temporal range with Hoardable.on is less than the lower bound" do
Expand Down

0 comments on commit b331a7e

Please sign in to comment.