mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
add diagnostics for flaky test
This commit is contained in:
parent
ad8643bfe2
commit
658c2f52c0
|
@ -49,6 +49,12 @@ describe SearchController do
|
|||
)
|
||||
expect(response).to be_success
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user