• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unit testing a series of aync operations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Detecting if current user owns the screen (screen lock/FUS)
  • Next by Date: Quartz Event Taps and Touch Bar
  • Previous by thread: Re: Detecting if current user owns the screen (screen lock/FUS)
  • Next by thread: Quartz Event Taps and Touch Bar
  • Index(es):
    • Date
    • Thread