DEV: correct rake task used to grab admin key

DEV: correct rake task used to grab admin key

We amended it so “api_key:get” is no longer supported and instead we are more explicit. This matches that change and fixes the bench.

diff --git a/script/bench.rb b/script/bench.rb
index b847db2f3c..44645f5549 100644
--- a/script/bench.rb
+++ b/script/bench.rb
@@ -184,7 +184,7 @@ puts "Populating Profile DB"
 run("bundle exec ruby script/profile_db_generator.rb")
 
 puts "Getting api key"
-api_key = `bundle exec rake api_key:get`.split("\n")[-1]
+api_key = `bundle exec rake api_key:get_or_create_master[bench]`.split("\n")[-1]
 
 def bench(path, name)
   puts "Running apache bench warmup"

GitHub sha: bf0ef732

1 Like