Skip to content

Commit e3c6f38

Browse files
yungstersfacebook-github-bot
authored andcommitted
RNTester: Relax Bridge Release Check
Reviewed By: mmmulani Differential Revision: D6665596 fbshipit-source-id: 2c59ea8add039d2bfc6b76701d16e82088fa8aad
1 parent 45e6fcd commit e3c6f38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Libraries/RCTTest/RCTTestRunner.m

+1-2
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,12 @@ - (void)runTest:(SEL)test module:(NSString *)moduleName
186186
[bridge invalidate];
187187
}
188188

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.
190190
NSDate *invalidateTimeout = [NSDate dateWithTimeIntervalSinceNow:30];
191191
while (invalidateTimeout.timeIntervalSinceNow > 0 && batchedBridge != nil) {
192192
[[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
193193
[[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
194194
}
195-
RCTAssert(batchedBridge == nil, @"Bridge should be deallocated after the test");
196195
}
197196

198197
@end

0 commit comments

Comments
 (0)