ember-concurrency: Acceptance tests fail because of TaskCancelation
testem.js:775 TaskCancelation: TaskCancelation
at Class.cancel (http://localhost:7357/assets/vendor.js:198319:19)
at Class.spliceTaskInstances (http://localhost:7357/assets/vendor.js:197740:22)
at Class.cancelAll (http://localhost:7357/assets/vendor.js:197732:12)
at Class.cancelAll (http://localhost:7357/assets/vendor.js:199072:23)
at Array.<anonymous> (http://localhost:7357/assets/vendor.js:199463:32)
at Class.owner.willDestroy (http://localhost:7357/assets/vendor.js:199454:25)
at invoke (http://localhost:7357/assets/vendor.js:14821:16)
at Object.flush (http://localhost:7357/assets/vendor.js:14885:11)
at Object.flush (http://localhost:7357/assets/vendor.js:14693:17)
at Object.end (http://localhost:7357/assets/vendor.js:15048:25)
Not sure why it’s happening… I only have one task, inside of a service.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (6 by maintainers)
It sounds like there is some other place in your code where you call
.then()
on a task instance but don’tcatch()
and it’s getting canceled as part of the test teardown. My hunch is that ember-concurrency is doing the right thing here, but perhaps the error message could be better, and could give you a little more information about the name of the task that’s failing.