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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -