From da05cc832ed48c8d2b76926274b09b542533e298 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Tue, 16 Apr 2019 08:45:18 -0700 Subject: [PATCH] Update tests for #4149 --- test/test_web.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_web.rb b/test/test_web.rb index f593ab78..c09b8482 100644 --- a/test/test_web.rb +++ b/test/test_web.rb @@ -107,13 +107,13 @@ describe Sidekiq::Web do end it 'can display queues' do - assert Sidekiq::Client.push('queue' => :foo, 'class' => WebWorker, 'args' => [1, 3], 'enqueued_at' => Time.now.to_f - 65) + assert Sidekiq::Client.push('queue' => :foo, 'class' => WebWorker, 'args' => [1, 3]) get '/queues' assert_equal 200, last_response.status assert_match(/foo/, last_response.body) refute_match(/HardWorker/, last_response.body) - assert_match(/seconds ago/, last_response.body) + assert_match(/0.0/, last_response.body) end it 'handles queue view' do