wspurgin / rspec-sidekiq

RSpec for Sidekiq
https://github.com/wspurgin/rspec-sidekiq
Other
651 stars 133 forks source link

Checking for time has a different format expectation #167

Closed MaicolBen closed 11 months ago

MaicolBen commented 4 years ago

Since we upgraded to 3.1.0, this match have_enqueued_sidekiq_job(id).in(20.minutes) fails randomly only in the CI:

       expected to have an enqueued MyWorker job 
         arguments: [1] 
         options: {"in"=>20 minutes}

       found 
         arguments: [[1]] 
         options: [{"at"=>1593448009.99905}]

That seems weird since in that code we don't have at

wspurgin commented 11 months ago

It sure does. I updated this in #194 - you'll now see "at" and "at" with the EPOCH second format