Skip to content

Commit

Permalink
fix timecop freeze by ignoring nanosecond precision for ci (publiclab…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlazypanda authored and reginaalyssa committed Oct 16, 2021
1 parent 7d08c99 commit c26d7d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit/tag_selection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
class TagSelectionTest < ActiveSupport::TestCase

test 'graph' do
Time.zone.now.change(nsec: 0)
Timecop.freeze
ts_count = TagSelection.select(:following, :created_at)
.where(following: true, created_at: (Time.now - 1.year..Time.now))
Expand Down

0 comments on commit c26d7d4

Please sign in to comment.