Browse Source

IPS-91 Check for actual errors according to the API

IPS-91
Dirk Zimmermann 7 months ago
parent
commit
e60d1de8ca
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      pEpObjCTests/TestUtils/PEPTestUtils.m

+ 3
- 2
pEpObjCTests/TestUtils/PEPTestUtils.m View File

@ -71,8 +71,9 @@ const NSInteger PEPTestInternalSyncTimeout = 20;
if (!txtFileContents) {
return NO;
} else {
NSArray<PEPIdentity *> *identities = [session importKey:txtFileContents error:nil];
return ([identities count] > 0);
NSError *error = nil;
NSArray<PEPIdentity *> *identities = [session importKey:txtFileContents error:&error];
return (identities != nil);
}
}


Loading…
Cancel
Save