Skip to content

Commit e97c2ff

Browse files
authored
Merge pull request #9542 from jrafanie/cypress-runs-without-rack-attack-rate-limiter
No longer needed since core won't enable rack attack with CYPRESS=true
2 parents bd7f161 + 2746dbb commit e97c2ff

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Rakefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ namespace :spec do
8686

8787
namespace :cypress do
8888
task :run_with_rails do
89-
# Set the rate limit to a large number to avoid 429: Too Many Requests errors
90-
# which can occur as cypress very quickly hits a lots of endpoints.
91-
puts "\n== Removing rate limit =="
92-
exit $?.exitstatus unless system("bundle exec rails runner 'MiqServer.my_server.add_settings_for_resource(:server => {:rate_limiting => {:request => {:limit => 99999}, :ui_login => {:limit => 99999}}})'")
93-
9489
puts "\n== Starting Rails server =="
9590
rails_pid = Bundler.with_original_env do
9691
spawn("bin/rails s", [:out, :err] => "/dev/null")

0 commit comments

Comments
 (0)