Do not run timers in testing.

This commit is contained in:
Robert Jackson 2014-11-05 08:19:16 -05:00
parent 3db8a7624b
commit a789fdab6f
No known key found for this signature in database
GPG Key ID: B3D10EF8171F7219

View File

@ -10,7 +10,8 @@ Travis.RepoController = Travis.Controller.extend
init: ->
@_super.apply this, arguments
Visibility.every Travis.INTERVALS.updateTimes, @updateTimes.bind(this)
if !Ember.testing
Visibility.every Travis.INTERVALS.updateTimes, @updateTimes.bind(this)
updateTimes: ->
Ember.run this, ->