diff options
-rw-r--r-- | UnitTesting/GTMFoundationUnitTestingUtilities.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/UnitTesting/GTMFoundationUnitTestingUtilities.m b/UnitTesting/GTMFoundationUnitTestingUtilities.m index 1fe5c5f..716b025 100644 --- a/UnitTesting/GTMFoundationUnitTestingUtilities.m +++ b/UnitTesting/GTMFoundationUnitTestingUtilities.m @@ -104,13 +104,12 @@ mode:(NSString *)mode context:(id<GTMUnitTestingRunLoopContext>)context { BOOL contextShouldStop = NO; - NSRunLoop *rl = [NSRunLoop currentRunLoop]; NSDate* next = nil; while (1) { contextShouldStop = [context shouldStop]; if (contextShouldStop) break; next = [[NSDate alloc] initWithTimeIntervalSinceNow:0.01]; - if (!([rl runMode:mode beforeDate:next])) break; + if (!([self runMode:mode beforeDate:next])) break; if ([next compare:date] == NSOrderedDescending) break; [next release]; next = nil; |