Skip to content

Commit 4a31966

Browse files
committed
Fix URLs for railsbench profiling scripts
It was done for the main benchmark in c91ccc1 but needs to be applied to these as well
1 parent 133a6c9 commit 4a31966

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

benchmarks/railsbench/popular_lines.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
def run_bench(app, visiting_routes)
1717
visiting_routes.each do |path|
1818
# The app mutates `env`, so we need to create one every time.
19-
env = Rack::MockRequest::env_for("http://localhost#{path}")
19+
env = Rack::MockRequest::env_for("https://localhost#{path}")
2020
response_array = app.call(env)
2121
unless response_array.first == 200
2222
p response_array

benchmarks/railsbench/popular_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def run_bench(app, visiting_routes)
1515
visiting_routes.each do |path|
1616
# The app mutates `env`, so we need to create one every time.
17-
env = Rack::MockRequest::env_for("http://localhost#{path}")
17+
env = Rack::MockRequest::env_for("https://localhost#{path}")
1818
response_array = app.call(env)
1919
unless response_array.first == 200
2020
p response_array

benchmarks/railsbench/slow_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def run_bench(app, visiting_routes)
1616
visiting_routes.each do |path|
1717
# The app mutates `env`, so we need to create one every time.
18-
env = Rack::MockRequest::env_for("http://localhost#{path}")
18+
env = Rack::MockRequest::env_for("https://localhost#{path}")
1919
response_array = app.call(env)
2020
unless response_array.first == 200
2121
p response_array

0 commit comments

Comments
 (0)