mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-28 22:46:52 +08:00
Improve stability of RCTAllocationTests
Reviewed By: frantic Differential Revision: D3862884 fbshipit-source-id: 52b168c62facd8e67d7047a087c843f3c477ca58
This commit is contained in:
committed by
Facebook Github Bot
parent
0e8b75b22c
commit
00e7d46df3
@@ -235,6 +235,7 @@ RCT_EXPORT_METHOD(test:(__unused NSString *)a
|
||||
// Wait to complete the test until the new batchedbridge is also deallocated
|
||||
@autoreleasepool {
|
||||
batchedBridge = bridge.batchedBridge;
|
||||
[bridge invalidate];
|
||||
bridge = nil;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user