File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -186,13 +186,12 @@ - (void)runTest:(SEL)test module:(NSString *)moduleName
186
186
[bridge invalidate ];
187
187
}
188
188
189
- // Wait for bridge to disappear before continuing to the next test
189
+ // Give the bridge a chance to disappear before continuing to the next test.
190
190
NSDate *invalidateTimeout = [NSDate dateWithTimeIntervalSinceNow: 30 ];
191
191
while (invalidateTimeout.timeIntervalSinceNow > 0 && batchedBridge != nil ) {
192
192
[[NSRunLoop mainRunLoop ] runMode: NSDefaultRunLoopMode beforeDate: [NSDate dateWithTimeIntervalSinceNow: 0.1 ]];
193
193
[[NSRunLoop mainRunLoop ] runMode: NSRunLoopCommonModes beforeDate: [NSDate dateWithTimeIntervalSinceNow: 0.1 ]];
194
194
}
195
- RCTAssert (batchedBridge == nil , @" Bridge should be deallocated after the test" );
196
195
}
197
196
198
197
@end
You can’t perform that action at this time.
0 commit comments