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"
This commit is contained in:
parent
0f0048e8e3
commit
8fa9f0cf92
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue