-
Notifications
You must be signed in to change notification settings - Fork 606
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
Disable automatic token refreshing for tests #181
Comments
@johnnyshields: hm, why would you ever want that to run in tests? |
for long-running integration tests which test performance. I think the question is really "why would a library hardcode its behavior to not run in tests, rather than making it configurable?" Its fine if the default config is false for test env, true for non-test so as to affect existing users. |
I get your point - changing the behavior of sth. if it's running in test env isn't ideal but at the same time a pretty common pattern in Ember.js as you have to make sure tests are not leaking and run loop events. I think if you're running long-running integration tests to test performance you shouldn't be running the app in test env anyway though as it will behave differently and might give you a wrong sense of its performance even (for example, ESA will always store the session in memory when running in test mode which of course is much faster than using |
@marcoow can we make this a config? |
@johnnyshields: I honestly don't see the need for doing that |
could we make a more general config |
@johnnyshields: I honestly don't see the need for doing that. As I said above - when you're executing long-running integration tests, specifically for performance testing you shouldn't be running the app in test mode anyway. |
I pray for the day when the Ember community will learn the merits of loose coupling. |
As it causes problems (see #35), also it might actually randomly break tests.
The text was updated successfully, but these errors were encountered: