mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 11:16:54 +08:00
DEV: add diagnostics to erratic test
This commit is contained in:
parent
9797073de0
commit
8ca73235dd
@ -32,9 +32,17 @@ describe Admin::EmbeddableHostsController do
|
||||
}
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(UserHistory.where(acting_user_id: admin.id,
|
||||
action: UserHistory.actions[:embeddable_host_update],
|
||||
new_value: "host: test.com, class_name: test-class, category_id: 3").exists?).to eq(true)
|
||||
|
||||
if (!UserHistory.where(
|
||||
acting_user_id: admin.id,
|
||||
action: UserHistory.actions[:embeddable_host_update],
|
||||
new_value: "host: test.com, class_name: test-class, category_id: 3").exists?)
|
||||
|
||||
puts "heisentest just failed, debug info is:"
|
||||
puts "count: #{UserHistory.count}"
|
||||
puts "data: #{UserHistory.all.map(&:to_json).join("\n")}"
|
||||
expect("erracit test").to eq("erratic test")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user