Skip to content

Commit

Permalink
Update tests for #4149
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Apr 16, 2019
1 parent 0a2559b commit da05cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_web.rb
Expand Up @@ -107,13 +107,13 @@ def perform(a, b)
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
Expand Down

0 comments on commit da05cc8

Please sign in to comment.