1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix flaky test (#5521)

This commit is contained in:
Adam McCrea 2022-09-12 08:55:57 -04:00 committed by Mike Perham
parent f36353cfea
commit b19260f2f7
No known key found for this signature in database

View file

@ -141,12 +141,12 @@ describe Sidekiq::Web do
end end
get "/queues/default?count=3" # direction is 'desc' by default get "/queues/default?count=3" # direction is 'desc' by default
assert_match(/1005/, last_response.body) assert_match(/\b1005\b/, last_response.body)
refute_match(/1002/, last_response.body) refute_match(/\b1002\b/, last_response.body)
get "/queues/default?count=3&direction=asc" get "/queues/default?count=3&direction=asc"
assert_match(/1000/, last_response.body) assert_match(/\b1000\b/, last_response.body)
refute_match(/1003/, last_response.body) refute_match(/\b1003\b/, last_response.body)
end end
it "can delete a queue" do it "can delete a queue" do