mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
Improve stability of RCTAllocationTests
Reviewed By: frantic Differential Revision: D3862884 fbshipit-source-id: 52b168c62facd8e67d7047a087c843f3c477ca58
This commit is contained in:
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
|
// Wait to complete the test until the new batchedbridge is also deallocated
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
batchedBridge = bridge.batchedBridge;
|
batchedBridge = bridge.batchedBridge;
|
||||||
|
[bridge invalidate];
|
||||||
bridge = nil;
|
bridge = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user