DEV: correct test suite
We have no choice but to bypass recursive debouncers in test Otherwise we overrun the stack with frames
This commit is contained in:
parent
ce4b5b56e5
commit
3d050bdaa3
|
@ -1096,7 +1096,11 @@ export default Controller.extend({
|
|||
const model = this.model;
|
||||
if (model) {
|
||||
if (model.draftSaving) {
|
||||
// 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();
|
||||
|
|
Loading…
Reference in New Issue