rspec-sidekiq icon indicating copy to clipboard operation
rspec-sidekiq copied to clipboard

Checking for time has a different format expectation

Open MaicolBen opened this issue 4 years ago • 0 comments

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

MaicolBen avatar Jun 29 '20 17:06 MaicolBen