-
Notifications
You must be signed in to change notification settings - Fork 320
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
Only first test finshes, chromedriver doesn't stop #341
Comments
@rostockahoi - in your /**
* Prepare for Dusk test execution.
*
* @beforeClass
* @return void
*/
public static function prepare()
{
static::startChromeDriver();
} Let me know if that doesn't fix your issue. |
Hi @calebporzio, thanks for the reply. The line exists. That's why the first test run works. But as soon as there's a process chromderiver-linux that is not terminated after the test has finished the next chromedriver-linux instance runs into an error. Something regarding the chromedriver-linux termination seems to not work properly. Btw: I didn't change Dusk's code. |
I think I've come closer to the problem. It seems everything is working just fine in I did a screencast of the processes running a single test which works. Then again which doesn't work due to the blocking process. Then killing this process manually and running the test again successfully. |
I have the exact same problem. I need to keep killing the process to make dusk work again. |
ProcessBuilder doesn't use the exec command to run the chromedriver. You should switch to pure Process. See symfony/symfony#5759 for some background information. I worte a small Trait to fix the issue in my project - you have to adapt the namespace and relative path to chromedriver:
|
I had a similar issue in Windows. @rostockahoi It opened the browser, executed the test case but didn't terminate the test case in the command prompt. So, I got to know from @rostockahoi post that my chromedriver-win.exe in Then I checked the Because there is a "TaskKill.exe" in this path. And after opening new command prompt I think some similar way must be there in linux to solve the issue. |
I updated to version ^2.0.0 and it is working for me now. |
chromedriver-linux
spawns when runningartisan dusk
but it doesn't stop after test execution, so every subsequent test will never finish because there cannot be multiple instances of chromedriver on the same port.When I try to exec chromedriver manually it says:
[0,002][SEVERE]: bind() returned an error, errno=98: Die Adresse wird bereits verwendet
which means "the address is already in use".However if I kill
chromedriver-linux
manually it works again - once.How can I fix the missing stop instruction?
The text was updated successfully, but these errors were encountered: