简体   繁体   中英

Capybara Cucumber timeout with Rails 5.0.1

Using ActionCable on Rails 5.0.1 my previously working cucumber test is now giving:

Rack application timed out during boot (RuntimeError)

On visiting a page

My cucumber env file contains:

require 'cucumber/rails'
require 'capybara/poltergeist'
# Require to enable javascript in tests
# See https://github.com/teampoltergeist/poltergeist
Capybara.javascript_driver = :poltergeist
# Required to test action cable.
# See http://stackoverflow.com/questions/35897189/capybara-not-working-with-action-cable
Capybara.server = :puma

You probably updated puma to 3.7.0 - It has a serious bug that will be fixed in 3.7.1 when it's released. For now revert to 3.6.9

gem 'puma', '!= 3.7.0'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM