From 705463615be9854e2a4637c0f1d7a7a71fda4152 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 2 Jun 2016 15:56:14 -0700 Subject: [PATCH] Fix some intermittent client erroring Some tests are triggering achievement polling. Prevent that from happening. --- app/models/CocoModel.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/CocoModel.coffee b/app/models/CocoModel.coffee index 8c8510857..4a5c84fb5 100644 --- a/app/models/CocoModel.coffee +++ b/app/models/CocoModel.coffee @@ -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'