"ERROR Errno :: EPIPE: Broken Pipe" with Culerity

I recently installed the flexibility to use on top of a cucumber. But when I launch my cucumber specifications, they turn red (they used to be green).

The errors I get have the following form:

Speed ​​:: Exception :: NavigationException: com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 500 Internal server error for http: // localhost: 3001 / (Culerity :: CulerityException) features / admin.feature: 82: in `And I logged in

When I look at the web server console (started rake culerity:rails:start), the error is:

ERRNO ERROR :: EPIPE: Broken Pipe

I noticed that these errors occur whenever I have cucumber steps (like "go") that make $ browser.goto.

Any idea?

PS: I made sure that JRuby is installed and on my way

+3
source share
4 answers

I believe that updating jruby to the version corresponding to the ruby ​​fix level that we ran resolved our problem, we had to install jruby from the source to get the correct one

0
source

This is what readme says for the gem:

I get a broken pipe error:

    * make sure JRuby is installed and in your path: running jruby -v should not 
produce an error
0
source

( ) Rails Bundler:

server = Culerity::run_server

,

Culerity::RemoteBrowserProxy.new(server, …)

.

It renders Bundler messes with RUBYOPTenv var (see how the Bundler modifies the environment for details), bin/run_celerity_server.rb(from the gem difficulty level) works with JRuby as an interpreter and JRuby rewards RUBYOPT .

Since the Bundler is not a gem of JRuby, the script does not start the server. Culerity::run_servermust be called in an environment without a bundler (i.e. with a clean one RUBYOPT)

0
source

Source: https://habr.com/ru/post/1758825/


All Articles