Skip to content

Commit

Permalink
Proposed fix for #391
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoNatan authored Nov 8, 2017
1 parent 0e9d7e2 commit ed20aad
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions detox/ios/Detox/GREYIdlingResourcePrettyPrint.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,12 @@ + (void)load
rv[@"appState"] = stateString;


NSHashTable* elements = [tracker valueForKey:@"elementIDs"];
NSArray* allElements = [elements allObjects];
NSArray* allElements = __tarckedObjectsMapping.dictionaryRepresentation.allValues;

NSMutableArray* elems = [NSMutableArray new];
NSMutableArray* URLs = [NSMutableArray new];

[allElements enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
id actualElement = [__tarckedObjectsMapping objectForKey:obj];

if(actualElement == nil)
{
return;
}

[allElements enumerateObjectsUsingBlock:^(id _Nonnull actualElement, NSUInteger idx, BOOL * _Nonnull stop) {
[elems addObject:[actualElement description]];

if([actualElement isKindOfClass:[NSURLSessionTask class]])
Expand Down

0 comments on commit ed20aad

Please sign in to comment.