Recently we've had one flaky unit test that's been acting up. We should fix its behavior.
Purpose
Fix #9 flaky unit test (testing behavior of cancel on background upload request).
Scope
Add variable to URLProtocolStubNetworkEngine to turn off automatically resuming background tasks immediately after submitting them.
Modify cancel test for background upload task
Modify cancel test for background download task
Discussion
The download manager cancel test had not (yet) been flaky, but we should probably adopt the same behavior for both tests.
I also set the tests to execute in random order (this should already have been the case).
Introduction
Recently we've had one flaky unit test that's been acting up. We should fix its behavior.
Purpose
Fix #9 flaky unit test (testing behavior of cancel on background upload request).
Scope
URLProtocolStubNetworkEngine
to turn off automatically resuming background tasks immediately after submitting them.Discussion
The download manager cancel test had not (yet) been flaky, but we should probably adopt the same behavior for both tests. I also set the tests to execute in random order (this should already have been the case).
📈 Coverage
Code
94.4%
Documentation
100%