mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 15:56:02 +08:00
DEV: add diagnostics to erratic test
This commit is contained in:
@ -32,9 +32,17 @@ describe Admin::EmbeddableHostsController do
|
|||||||
}
|
}
|
||||||
|
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
expect(UserHistory.where(acting_user_id: admin.id,
|
|
||||||
action: UserHistory.actions[:embeddable_host_update],
|
if (!UserHistory.where(
|
||||||
new_value: "host: test.com, class_name: test-class, category_id: 3").exists?).to eq(true)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user