DEV: Don't require wget in script/bench

This commit is contained in:
Jarek Radosz 2020-05-30 01:02:51 +02:00
parent 9a6ef80739
commit 8c8391c742
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ begin
'Api-Username' => "admin1" } 'Api-Username' => "admin1" }
# asset precompilation is a dog, wget to force it # asset precompilation is a dog, wget to force it
run "wget http://127.0.0.1:#{@port}/ -o /dev/null -O /dev/null" run "curl -s -o /dev/null http://127.0.0.1:#{@port}/"
redirect_response = `curl -s -I "http://127.0.0.1:#{@port}/t/i-am-a-topic-used-for-perf-tests"` redirect_response = `curl -s -I "http://127.0.0.1:#{@port}/t/i-am-a-topic-used-for-perf-tests"`
if redirect_response !~ /301 Moved Permanently/ if redirect_response !~ /301 Moved Permanently/