| Summary: | Search crawler: Should handle cancellation in Deferred.all instead of after Deferred.Cancel call. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | simon_kaegi |
| Version: | 4.0 | ||
| Target Milestone: | 5.0 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
libing wang
(In reply to libing wang from comment #0) > In my test case, I cancelled the all the defers when 3 are resolved. I > expected that Deferred.All() returns nothing in this case. I expected that Deferred.All() returns nothing but actually it returns a promise. Talked to Simon, my deferred.All should handle rejection. The previous code in searchCrawler is wrong. fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=e6e57bfcdeb0a0552b2018769b4c9b36e622f752. Also change the mockFileClient to delay 0.002 seconds to fetch children so that the test cancellation case can handle the rejection. |