ios - Xcode Async Unit Tests waiting on Main Thread -
i'm trying test asynchronous code using unit tests in xcode, i'm getting blocked main thread.
the problem of code being tested expects receive callback ios class (avfoundation). however, seems avfoundation class callback on main thread.
the problem if i'm doing async unit test, test blocks main thread while waiting, callback can never sent.
i'm pretty sure problem. there way run tests thread or have xctwaiter doesn't block main thread?
edit: after looking bit @ docs, seems best way run entire test case on background thread. however, in current project testing set automatically. wonder if knows how setup test case / run manually. way run on thread.
Comments
Post a Comment