-
Notifications
You must be signed in to change notification settings - Fork 98
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
Passing unsupported OS/Browser combinations through to saucelabs causes process to hang and never handle the result #195
Comments
There's one other change I made, which is to not throw an error when I did this by removing this if block: if (result.status === 'test error') {
// A detailed error message should be composed here after the Sauce Labs API is
// modified to report errors better, see #102.
throw new Error('Test Error');
} I think the state of what this returns has improved since that bug was filed. Without this commented out I get this:
With the block commented out I get this:
|
I've been running into similar issues with Select2 that I just tracked down to Firefox builds not actually being started. So we're having a similar issue (process is hanging because of a (possibly) bad configuration) but the test isn't being triggered at all so the result isn't going to come back correctly. Edit: The issue was that I wasn't locking the |
thanks a lot kevin this fixed my issue with firefox as well. |
Sure, anyone want to submit a Pull Request? |
I dug into the details here, and basically here's what's going on:
The default number of fetch attempts to get the status is effectively
infinity
. Now, when there's a browser config issue, the test is never started, and the result that it gets back is not handled correctly:Even though the status is 'test error',
status
is never read. It relies purely onjob_id
and continues running until it gets back an alphanumeric value.The fix here is pretty simple. result.status just needs to be checked to see if it is
'test error'
src/Job.js:156
A little more might need to be done to get the reporting to line up though, but that at least allows it to pass.
The text was updated successfully, but these errors were encountered: