diff options
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]; |