mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
add diagnostics for flaky test
This commit is contained in:
parent
ad8643bfe2
commit
658c2f52c0
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,12 @@ describe SearchController do
|
||||||
)
|
)
|
||||||
expect(response).to be_success
|
expect(response).to be_success
|
||||||
data = JSON.parse(response.body)
|
data = JSON.parse(response.body)
|
||||||
|
unless (data && data['topics'] && data['topics'][0] && data['topics'][0]['id'])
|
||||||
|
puts "FLAKY TEST"
|
||||||
|
p data
|
||||||
|
p my_post.topic
|
||||||
|
p my_post
|
||||||
|
end
|
||||||
expect(data['topics'][0]['id']).to eq(my_post.topic_id)
|
expect(data['topics'][0]['id']).to eq(my_post.topic_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue