IOSAD-134 Test (failing). IOSAD-134
authorDirk Zimmermann <dz@pep.security>
Mon, 02 Sep 2019 13:18:36 +0200
branchIOSAD-134
changeset 11823f0d31bba799
parent 1181 935520484e3a
child 1183 d553b513052e
IOSAD-134 Test (failing).
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Mon Sep 02 13:18:12 2019 +0200
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Mon Sep 02 13:18:36 2019 +0200
     1.3 @@ -1319,6 +1319,28 @@
     1.4      [self shutdownSync];
     1.5  }
     1.6  
     1.7 +#pragma mark - enable/disable sync
     1.8 +
     1.9 +- (void)testEnableSync
    1.10 +{
    1.11 +    PEPSession *session = [PEPSession new];
    1.12 +
    1.13 +    PEPIdentity *identMe = [[PEPIdentity alloc]
    1.14 +                            initWithAddress:@"me-myself-and-i@pep-project.org"
    1.15 +                            userID:@"me-myself-and-i"
    1.16 +                            userName:@"pEp Me"
    1.17 +                            isOwn:YES];
    1.18 +    NSError *error = nil;
    1.19 +    XCTAssertTrue([session mySelf:identMe error:&error]);
    1.20 +    XCTAssertNil(error);
    1.21 +
    1.22 +    error = nil;
    1.23 +
    1.24 +    XCTAssertTrue([session enableSyncForIdentity:identMe error:&error]);
    1.25 +    XCTAssertNotNil(error);
    1.26 +
    1.27 +}
    1.28 +
    1.29  #pragma mark - Helpers
    1.30  
    1.31  - (void)testSendMessageOnSession:(PEPSession *)session