Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

browser.pause() stopped working in new versions #1914

Closed
giladbeeri opened this issue Mar 9, 2015 · 3 comments
Closed

browser.pause() stopped working in new versions #1914

giladbeeri opened this issue Mar 9, 2015 · 3 comments

Comments

@giladbeeri
Copy link

I was trying to use browser.pause(). During the process of developing the test, it stopped working.

When the test finishes, I get several errors (printed to console, not test errors) of the same type:
Failed to open socket on port 5858, waiting 1000 ms before retrying

I found out that the problem is that there's another zombie node process which uses port 5858.

I suggest that if browser.pause() fails to connect to the necessary port, the test will fail with a relevant message (right now the test continues and an error message is printed in the end, not a test error but something internal). A developer will use browser.pause() when developing the test (and not when executing it in the long-term), so it's reasonable to "fail fast" at that point.

@hankduan
Copy link
Contributor

When the debugger is unable to find a port, it should be printing to console.log immediately (it doesn't make sense to be a test error, since it has nothing to do with the test itself).

That being said, making it fail immediately is a good suggestion and I will have a PR out for that. Meanwhile, browser.pause take a single optional parameter, the port number. You can use a different port if 5858 is in use.

@hankduan
Copy link
Contributor

Alright, this PR should do what you want: #1898

@giladbeeri
Copy link
Author

Thank you @hankduan, and yes, what you wrote is what I meant :) (stopping the test but with a system error and not a test error).

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

No branches or pull requests

2 participants