mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:01:14 +08:00
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:
@ -1903,7 +1903,7 @@ RSpec.describe Search do
|
|||||||
results = Search.new('#9998').execute
|
results = Search.new('#9998').execute
|
||||||
expect(results.posts.length).to eq(1)
|
expect(results.posts.length).to eq(1)
|
||||||
|
|
||||||
results = Search.new('#777').execute
|
results = Search.new('#nonexistent').execute
|
||||||
expect(results.posts.length).to eq(0)
|
expect(results.posts.length).to eq(0)
|
||||||
|
|
||||||
results = Search.new('xxx #:').execute
|
results = Search.new('xxx #:').execute
|
||||||
|
Reference in New Issue
Block a user