A platform for community discussion. Free, open, simple.
DEV: correct test suite
Sam Saffron3d050bdaa316
diff --git a/app/assets/javascripts/discourse/app/controllers/composer.js b/app/assets/javascripts/discourse/app/controllers/composer.jsindex e86b14b4553..cd3d3576bbc 100644--- a/app/assets/javascripts/discourse/app/controllers/composer.js+++ b/app/assets/javascripts/discourse/app/controllers/composer.js@@ -1096,7 +1096,11 @@ export default Controller.extend({const model = this.model;if (model) {if (model.draftSaving) {- debounce(this, this._saveDraft, 2000);+ // in test debounce is Ember.run, this will cause+ // an infinite loop+ if (ENV.environment !== "test") {+ debounce(this, this._saveDraft, 2000);+ }} else {model.saveDraft().finally(() => {this._lastDraftSaved = Date.now();