From 89824efe6bf28b4bfd8c66badfe8d3f70501e8cc Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Fri, 25 Jul 2014 19:00:10 +0000 Subject: Add a comment pointing to Xcode 6's XCTestExpectation for testing asynchronous behavior. DELTA=4 (4 added, 0 deleted, 0 changed) DELTA_BY_EXTENSION=h=4 --- UnitTesting/GTMFoundationUnitTestingUtilities.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'UnitTesting') diff --git a/UnitTesting/GTMFoundationUnitTestingUtilities.h b/UnitTesting/GTMFoundationUnitTestingUtilities.h index 0dc8227..6706daf 100644 --- a/UnitTesting/GTMFoundationUnitTestingUtilities.h +++ b/UnitTesting/GTMFoundationUnitTestingUtilities.h @@ -19,6 +19,10 @@ #import #import +// NOTE: These utilities predate XCTestExpectation (introduced with Xcode 6). +// Newer unit tests should use [self waitForExpectationsWithTimeout:] +// to spin the run loop instead of using the context utilities below. + // Many tests need to spin the runloop and wait for an event to happen. This is // often done by calling: // NSDate* next = [NSDate dateWithTimeIntervalSinceNow:resolution]; -- cgit v1.2.3