While implementing integration testing using the ember-testing package, I noticed that the “then” portion of “visist(”/").then(…)" is never being called. After digging in to it some, this is because Ember.run.hasScheduledTimers() never hits zero (https://github.com/emberjs/ember.js/blob/master/packages/ember-testing/lib/helpers.js#L65).
Navigating through our app, I notice that we’ll have anywhere from a few to thousands of scheduled timers (according to this function). Should this be avoided? I believe most of these scheduled timers are coming from things such as array observers and other observers such as observing whether a user is logged in or not. If we should avoid having this many scheduled timers - how do we do so?