Completion block of the async operation is not called while testing

Originator:aleksey.kozhevnikov
Number:rdar://31318560 Date Originated:29-Mar-2017 01:16 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.3 (8E162)
Classification: Reproducible:Always
 
Summary:
Example project: https://github.com/blackm00n/AsyncOperationCompletionBlockBug

Xcode 8.2.1 successfully pass the test
Xcode 8.3 fails

For some reasons completion block of the async Operation is not called even though `isFinished` is changed to `true` notified via KVO. Maybe it's some interference with `waitForExpectations`.

Steps to Reproduce:
Open example project in Xcode 8.3, run the tests, `testSingleOperationFinished` will fail

Expected Results:
`testSingleOperationFinished` test succeeds

Actual Results:
`testSingleOperationFinished` test fails — `Operation.completionBlock` is not called

Version:
Xcode 8.3 (8E162)

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!