Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Timeout occurs causing all following javascript tests to fail. #904

Closed
TheJayWright opened this issue Aug 10, 2017 · 3 comments
Closed

Timeout occurs causing all following javascript tests to fail. #904

TheJayWright opened this issue Aug 10, 2017 · 3 comments

Comments

@TheJayWright
Copy link

TheJayWright commented Aug 10, 2017

Note: This is for issues with Poltergeist. If you have a howto type question, please ask on Stack Overflow requested in the README.

Note: Poltergeist depends on PhantomJS. The latest stable version of PhantomJS (2.1.1) only supports up to ES5. If you are attempting to
use ES5+ features/methods your app may report JS errors or may just silently fail. There is nothing Poltergeist can do about that. You can either
Transpile and Polyfill to ES5 compatible code, or try the beta version of PhantomJS (2.5.x).

Meta

Poltergeist Version:

2.1.1

Expected Behavior

Test times out and the following tests perform as normal.

Actual Behavior

When one test times out, the rest of the tests all timeout as well.

Steps to reproduce

Here is the debug output.

....{"id":"00827256-55d8-479d-a7ec-2164e257bf7c","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"ae1706a5-8f66-474e-860c-d5f4c3cb7209","name":"reset","args":[]}
{"id":"cdb71953-8476-4aa7-8a22-229e4395016b","name":"reset","args":[]}
E{"id":"dcd9e5ea-3485-4bc0-be1d-5cd5b2cd0865","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"8a287344-e961-48c7-8a45-d9515cbb6cf7","name":"reset","args":[]}
{"id":"f3097da8-ed6c-4b73-a433-9a2cc29b5020","name":"reset","args":[]}
E{"id":"35fb0b2d-bff2-4900-956d-dcdae37311f2","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"a42a263f-0e46-4dc3-a80e-eb8826f15935","name":"reset","args":[]}
{"id":"b04e7aba-c181-427e-8290-a6671d65266c","name":"reset","args":[]}
E{"id":"cf3a4c4f-459c-4ac6-ba74-92021dc122fa","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"40eac387-6f37-4a4a-817f-a666867b6b03","name":"reset","args":[]}
{"id":"e4dc471b-7345-4e86-862e-75476446ffa5","name":"reset","args":[]}
E{"id":"7a27ae42-dd9e-4d19-a26c-c0403dd0eddc","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"370bb9c9-4da6-493c-ba0c-589666b031f0","name":"find","args":["css",".dropdown-menu"]}
{"id":"2bd1bc1d-37fd-4eda-893c-f1728c6a68c0","name":"reset","args":[]}
E{"id":"c6f0d095-7af9-401e-b881-a2373d540b87","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"0228a836-c2cd-4640-8179-c05a82c24060","name":"find","args":["css",".dropdown-menu"]}
{"id":"d69ccb3b-619a-4147-8d57-d43a17b2dfde","name":"reset","args":[]}
E{"id":"9c7c8ed4-5461-43d7-a712-57871a102a51","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"c72a06ab-19e6-48eb-af28-91546f37e53f","name":"reset","args":[]}
{"id":"695114b2-96d2-44a7-82f0-bbdd1bbb4e13","name":"reset","args":[]}
E{"id":"9949a035-867f-47bd-abcb-845ef924317e","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"a5a302d7-740e-4979-a76c-d7a6cc2449e6","name":"reset","args":[]}
{"id":"e8ef2387-d789-446b-b1a2-58cffb9e4662","name":"reset","args":[]}
E{"id":"efac7ca8-74b5-4bd4-aaf0-a16630c781cc","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"c6953b24-e554-4732-a50e-d79c1adcffde","name":"reset","args":[]}
{"id":"a37e4ad4-0e04-4311-a7d6-a8d7c7535e64","name":"reset","args":[]}
E{"id":"4dad1017-7865-4f1c-a727-73d652447688","name":"visit","args":["http://127.0.0.1:52393/students/users/new"]}
{"id":"c1d6cfbb-ee67-40fa-9d7a-ba97fa45ff50","name":"reset","args":[]}
{"id":"7c313728-a959-4700-b8e2-eaf7800b7106","name":"reset","args":[]}
E{"id":"1f43ba36-1007-41aa-a046-450050aad7b9","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"01328080-dd81-4aa4-897b-98c987f0c5ad","name":"reset","args":[]}
{"id":"aa050dbb-13c9-4a7f-b0ad-e484600f768f","name":"reset","args":[]}
E{"id":"f9a76bfd-a808-4820-a69d-d74bee53e203","name":"visit","args":["http://127.0.0.1:52393/session/new"]}
{"id":"ff8c1240-a7d8-4bda-83ac-ea269df2f54a","name":"reset","args":[]}
{"id":"a2451c56-0260-4837-bf99-a6c01212465c","name":"reset","args":[]}

@twalpole
Copy link
Contributor

twalpole commented Aug 10, 2017

The log doesn't show any responses which probably means the server has already hung, and therefore provides no useful info. Please show the info from the log right before the hang as well. Additionally, what version of Poltergeist are you actually using (It's not 2.1.1 - that's PhantomJS)?

@TheJayWright
Copy link
Author

TheJayWright commented Aug 11, 2017

Sorry, Poltergeist would be 1.15.0. The server is hanging on the first timeout regardless what test. Our suite doesn't run in any particular order. Let me know anymore information I can provide. I think this may have something to do with AJAX? I will provide the information before the hangup tomorrow when I'm back in the office.

Thanks for your quick reply.

@twalpole
Copy link
Contributor

Closing due to lack of response, we can reopen when the requested info is provided

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

No branches or pull requests

2 participants