question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Acceptance tests fail because of TaskCancelation

See original GitHub issue
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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
machtycommented, Jun 17, 2016

It sounds like there is some other place in your code where you call .then() on a task instance but don’t catch() 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.

0reactions
knownasilyacommented, Oct 4, 2016

Sure, if I have more issues I’ll let you know.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found