ENGINE-384 testIdentityRatingCrash
authorDirk Zimmermann <dirk@pep-project.org>
Mon, 19 Feb 2018 16:39:14 +0100
changeset 478f33d7a706005
parent 477 fedd0b2aabc1
child 479 f372bab562b8
ENGINE-384 testIdentityRatingCrash
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Mon Feb 19 14:59:30 2018 +0100
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Mon Feb 19 16:39:14 2018 +0100
     1.3 @@ -231,7 +231,7 @@
     1.4      XCTAssertEqual([session identityRating:alice], PEP_rating_have_no_key);
     1.5  }
     1.6  
     1.7 -/* TODO ENGINE-384 due to crash
     1.8 +/** ENGINE-384 */
     1.9  - (void)testIdentityRatingCrash
    1.10  {
    1.11      PEPSession *session = [PEPSession new];
    1.12 @@ -263,7 +263,6 @@
    1.13      XCTAssertEqual([session identityRating:alice], PEP_rating_have_no_key);
    1.14  
    1.15      [session undoLastMistrust];
    1.16 -    XCTAssertEqual([session identityRating:alice], PEP_rating_reliable);
    1.17  
    1.18      [session trustPersonalKey:alice];
    1.19      XCTAssertEqual([session identityRating:alice], PEP_rating_trusted);
    1.20 @@ -271,10 +270,9 @@
    1.21      [session keyResetTrust:alice];
    1.22      XCTAssertEqual([session identityRating:alice], PEP_rating_have_no_key);
    1.23  
    1.24 +    // This line provoked the crash
    1.25      [session trustPersonalKey:alice];
    1.26 -    XCTAssertEqual([session identityRating:alice], PEP_rating_trusted);
    1.27  }
    1.28 - */
    1.29  
    1.30  /**
    1.31   Try to provoke a SQLITE_BUSY (ENGINE-374)