2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

DEV: Update bench.rb for core changes (#8670)

- Use new api key rake task
- Switch to header-based API auth
- Stop hard-coding topic id
This commit is contained in:
David Taylor 2020-01-08 05:23:29 +00:00 committed by Sam
parent a8fbf7c128
commit fd6fbaa4ae
2 changed files with 19 additions and 9 deletions

View file

@ -65,7 +65,7 @@ unless Rails.env == "profile"
end
def ensure_perf_test_topic_has_right_title!
t = Topic.find(179)
t = Topic.where(archetype: :regular).last
t.title = "I am a topic used for perf tests"
t.save! if t.title_changed?
end