diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2014-07-25 19:00:10 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2014-07-25 19:00:10 +0000 |
commit | 89824efe6bf28b4bfd8c66badfe8d3f70501e8cc (patch) | |
tree | 92b44b00e099a400df2738cb5d6f6b43ac292421 /UnitTesting | |
parent | 4f4d5218258dd57256da1a65db06d8d8bc8e462e (diff) |
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
Diffstat (limited to 'UnitTesting')
-rw-r--r-- | UnitTesting/GTMFoundationUnitTestingUtilities.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <Foundation/Foundation.h> #import <objc/objc.h> +// 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]; |