title: Testing asynchronous call in unit test in iOS
body: <p>I am facing a problem while unit testing an asynchronous call in iOS. (Although it is working fine in view controllers.)</p>
  
  <p>Has anyone faced this issue before? I have tried using a wait function but I'm still facing the same problem.</p>
  
  <p>Please suggest an example of a good way to do this.</p>