Improve stability of RCTAllocationTests

Reviewed By: frantic

Differential Revision: D3862884

fbshipit-source-id: 52b168c62facd8e67d7047a087c843f3c477ca58
This commit is contained in:
Pieter De Baets 2016-09-15 04:24:56 -07:00 committed by Facebook Github Bot
parent 0e8b75b22c
commit 00e7d46df3
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}