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:
parent
a8fbf7c128
commit
fd6fbaa4ae
2 changed files with 19 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue