From b19260f2f7d03b285b8fd3209a9ff1c5da56119c Mon Sep 17 00:00:00 2001 From: Adam McCrea Date: Mon, 12 Sep 2022 08:55:57 -0400 Subject: [PATCH] Fix flaky test (#5521) --- test/web.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/web.rb b/test/web.rb index 8087a36e..c9cf9660 100644 --- a/test/web.rb +++ b/test/web.rb @@ -141,12 +141,12 @@ describe Sidekiq::Web do end get "/queues/default?count=3" # direction is 'desc' by default - assert_match(/1005/, last_response.body) - refute_match(/1002/, last_response.body) + assert_match(/\b1005\b/, last_response.body) + refute_match(/\b1002\b/, last_response.body) get "/queues/default?count=3&direction=asc" - assert_match(/1000/, last_response.body) - refute_match(/1003/, last_response.body) + assert_match(/\b1000\b/, last_response.body) + refute_match(/\b1003\b/, last_response.body) end it "can delete a queue" do