-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Protractor timing out instantly on some tests #622
Comments
Ironically extending, extending the sleep time in the beforeEach from 100 to 200 make the error go away... solves my problem but still looks like a bug in that the error doesn't make sense. Maybe also worth noting is that which tests trigger this error doesn't seem to be particularly deterministic/consistent, but it may be something to do with calling isPresent or isDisplayed on the object returned by Edit: apparently setting Could be that the only "bug" here is the reporting of 2147483.648 seconds? |
It'd be helpful to know what browser you're testing against (they treat timeouts differently) |
Got it! Your |
Follow-up probably of no interest - unfortunately the overflow is occurring on the on the Driver side of the Test -> Driver protocol. So, Protractor can't easily warn about the overflow, unless we figure out the limits based on the type of driver. FYI - you can set allScriptsTimeout to 0 if you want there to be no timeout. |
Thanks a bunch. Setting a sane timeout banishes the insane timeout errors. I'm using chrome. |
Some tests are failing with an error like the following using Version 0.20.1
allScriptsTimeout is set to 1100000000000000000
The test page doesn't have any use of $timeout or $http or anything like that. I'm not calling waitForAngular anywhere, but am calling
browser.sleep(100).then...
in the beforeEach function.Somehow protractor thinks it's been waiting for 2147483.648 seconds, or for it to timeout pretty much instantly.
The text was updated successfully, but these errors were encountered: