mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: official benchmark crashing while populating db
This commit is contained in:
@@ -95,9 +95,10 @@ puts
|
||||
puts "Creating 100 topics"
|
||||
|
||||
topic_ids = 100.times.map do
|
||||
topic = PostCreator.create(users.sample, raw: sentence, title: sentence[0..50].strip, category: categories.sample.name, skip_validations: true)
|
||||
post = PostCreator.create(users.sample, raw: sentence, title: sentence[0..50].strip, category: categories.sample.name, skip_validations: true)
|
||||
|
||||
putc "."
|
||||
topic.id
|
||||
post.topic_id
|
||||
end
|
||||
|
||||
puts
|
||||
|
||||
Reference in New Issue
Block a user