Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 2, 2025
1 parent 4d80a26 commit 43a3520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testing_fake_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def perform(a, b)
it "stubs the async call" do
assert_equal 0, DirectJob.jobs.size
assert DirectJob.perform_async(1, 2)
assert_in_delta (Time.now.to_f * 1000).floor, DirectJob.jobs.last["enqueued_at"], 0.1
assert_in_delta ::Process.clock_gettime(::Process::CLOCK_REALTIME, :millisecond), DirectJob.jobs.last["enqueued_at"], 10
assert_equal 1, DirectJob.jobs.size
assert DirectJob.perform_in(10, 1, 2)
refute DirectJob.jobs.last["enqueued_at"]
Expand Down

0 comments on commit 43a3520

Please sign in to comment.