Fix some intermittent client erroring

Some tests are triggering achievement polling. Prevent that from happening.
This commit is contained in:
Scott Erickson 2016-06-02 15:56:14 -07:00 committed by phoenixeliot
parent 870ae9a8a1
commit 705463615b

View file

@ -368,6 +368,7 @@ class CocoModel extends Backbone.Model
return if _.isString @url then @url else @url()
@pollAchievements: ->
return if application.testing
CocoCollection = require 'collections/CocoCollection'
EarnedAchievement = require 'models/EarnedAchievement'