Closed zhongwuzw closed 4 years ago
Please add a test.
This is a really great fix! Would you mind adding a test as @bolsinga suggested?
@bolsinga @garrettmoon Please review again. :)
Thanks for the test!
Can you add an entry to CHANGELOG.md for this?
Mind rebasing against master? I think I fixed a flakey test.
@garrettmoon Tests failed like below frequently, I think we may need to add a command like rm -rf ~/Library/Developer/Xcode/DerivedData/
before build project in CI?
Sorry for the long delay @zhongwuzw. The CI tests should now be fixed. If you could rebase again, we can do a final review of your change.
@jparise Done.
This is looking really good, @zhongwuzw! Just a few more bits of feedback.
Done.
This looks great, thank you so much for the fix!
Fixes #489 , we use
cacheKey
to get thetask
, actually it would mix updata
if previous task cancelled but download delegate still not finished , and next task with the same url started at the same time. This is the race condition for the same url downloading, we can keep the weak reference totask
and get it in session delegate.