Unit testing a series of aync operations?
Unit testing a series of aync operations?
- Subject: Unit testing a series of aync operations?
- From: Rick Mann <email@hidden>
- Date: Fri, 21 Apr 2017 04:40:17 -0700
I can use waitForExpectations() to test an asynchronous operation, but a real-world test often involves several async ops chained together. I'd like to abort the test if some of those operations fail to complete in a certain amount of time. Some ops should be quick, while later ops can take longer.
Is there any way to test this? Remember, each operation has to wait for the previous one to finish.
Thanks,
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden