Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake aborted! Parallel::DeadWorker: Parallel::DeadWorker on failing Rspec tests #186

Open
neuzebeoneclass opened this issue Aug 4, 2016 · 6 comments

Comments

@neuzebeoneclass
Copy link

Cloning directly from https://github.com/browserstack/rspec-browserstack and updating only to use correct BrowserStack credentials, running these tests results in expected behaviour and all tests pass. However if I intentionally make the tests fails eg change
expect(@driver.title).to eql("BrowserStack - Google Search")
to something else like
expect(@driver.title).to eql("NOTBrowserStack - Google Search")
the test fails as expected but then returns the error

rake aborted!
Parallel::DeadWorker: Parallel::DeadWorker
preventing the processes from running any more tests.

@grosser
Copy link
Owner

grosser commented Aug 5, 2016

idk why this happens ... also don't have the time to debug this atm, if you find any more insight or even a fix, please update!

@lbrezilien
Copy link

@neuzebeoneclass ever figured out the issue? I'm having the same problem.

@jmaheshkumar
Copy link

jmaheshkumar commented Nov 14, 2018

I am also getting the same error

Parallel::DeadWorker (Parallel::DeadWorker):

fatal: No live threads left. Deadlock? 2 threads, 2 sleeps current

Anyone can help me to resolve this? Thanks in advance.....

@muyiwaoyeniyi
Copy link

@jmaheshkumar Were you able to solve the issue? I'm having the same issue.

Thanks.
Taiwo

@zmcgugin
Copy link

zmcgugin commented Jun 7, 2024

Using browserstack as well. I found this error goes away by changing "in_processes" to "in_threads" in the Parallel.map section of the Rakefile. Not really a solution but good enough for my use case. Nothing else seems to work.

Edit: Nvm im still stuck. Threads cause other issues im running into -_-.

@muyiwaoyeniyi
Copy link

@zmcgugin That's what I did too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants