From 8fa9f0cf927e3d10e558e29b08bdcc295cf50a88 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Wed, 31 Aug 2022 20:52:57 +0200 Subject: [PATCH] DEV: Fix a flaky spec (#18146) In some cases the topic of the fabricated post can be titled "This is a test topic 777" which matches the search query "#777" --- spec/lib/search_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/search_spec.rb b/spec/lib/search_spec.rb index 2be1c5dc536..c3ddb409ae4 100644 --- a/spec/lib/search_spec.rb +++ b/spec/lib/search_spec.rb @@ -1903,7 +1903,7 @@ RSpec.describe Search do results = Search.new('#9998').execute expect(results.posts.length).to eq(1) - results = Search.new('#777').execute + results = Search.new('#nonexistent').execute expect(results.posts.length).to eq(0) results = Search.new('xxx #:').execute