Acceptance tests fail because of TaskCancelation
See original GitHub issuetestem.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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (6 by maintainers)
Top Results From Across the Web
A Task does not cancels with a CancellationTokenSource
This code is a test program. In the original question, if you await the task it's impossible that "Cancel" can cancel the operation...
Read more >Examples, Acceptance Criteria and Acceptance Tests - Lv Yi
His list of Acceptance tests is something like this: fail when user tries to cancel on the same day as travel begins; succeed...
Read more >What is Acceptance Testing (A Complete Guide)
Even the Product passing the technical requirements may fail BAT due to these reasons. #3) Contract Acceptance Testing (CAT). This is a contract ......
Read more >TaskExtensions.WithCancellationAndTimeout leave a trail of ...
I desided to validate the helper method's general behavior by copying it into a test that wraps a Task with a delayed failure...
Read more >The Use of the Target Cancellation Task to Identify Eloquent ...
Because preoperative testing failed to identify deficits that would be anticipated with disruption of the relevant major white matter fibers ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.Sure, if I have more issues I’ll let you know.