Skip to content

Commit

Permalink
Gotta love times on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Dec 17, 2023
1 parent ad4cf7c commit 3bec097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/active_job/active_record/test_performs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ActiveJob::ActiveRecord::TestPerforms < ActiveSupport::TestCase
end
end

time = 5.minutes.from_now.utc
time = Time.now.utc.change(usec: 0)
assert_changes -> { @invoice.reload.reminded_at }, to: time do
assert_performed_with job: ApplicationRecord::TouchJob, args: [@invoice, :reminded_at, time: time] do
@invoice.touch_later :reminded_at, time: time
Expand All @@ -20,7 +20,7 @@ class ActiveJob::ActiveRecord::TestPerforms < ActiveSupport::TestCase
end

test "update_later" do
time = 5.minutes.from_now.utc
time = Time.now.utc.change(usec: 0)
assert_changes -> { @invoice.reload.reminded_at }, to: time do
assert_performed_with job: ApplicationRecord::UpdateJob, args: [@invoice, reminded_at: time] do
@invoice.update_later reminded_at: time
Expand Down

0 comments on commit 3bec097

Please sign in to comment.