apollographql / apollo-client

:rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
https://apollographql.com/client
MIT License
19.33k stars 2.65k forks source link

pollInterval keeps NgZone occupied and hangs e2e tests #2559

Closed gviligvili closed 6 years ago

gviligvili commented 6 years ago

I use protractor to test my project. If setTimeout / setInterval is used the ngZone is occupied, and the app won't stablize therefore the protractor will throw Timeout Error accours : Timed out waiting for asynchronous Angular tasks to finish after 11 seconds.

When I use pollInterval option, protractor keep throwing this error. when I remove pollInterval, e2e tests runs perfectly fine.

Intended outcome: pollInterval should not occupie ngzone and e2e tests should run.

Actual outcome: pollInterval holds ngZone and protractor fails to start. (I don't want to use the "don't wait for angular" flag).

How to reproduce the issue: Use watchQuery with pollInterval option and try to run protractor.

Version

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Apollo Client!

hwillson commented 6 years ago

If this is still a problem, would you mind reporting this over in the https://github.com/apollographql/apollo-angular repo? Issues here are reserved for problems with the apollo-client project specifically. Thanks!