ENGINE-409 test for PEP_OUT_OF_MEMORY after keyResetTrust
authorDirk Zimmermann <dirk@pep-project.org>
Fri, 16 Mar 2018 15:16:42 +0100
changeset 547a0c9be26f48a
parent 546 725069619f4b
child 548 09ec46b2113d
ENGINE-409 test for PEP_OUT_OF_MEMORY after keyResetTrust
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Fri Mar 16 15:10:02 2018 +0100
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Fri Mar 16 15:16:42 2018 +0100
     1.3 @@ -246,6 +246,7 @@
     1.4  
     1.5      XCTAssertFalse([session keyResetTrust:alice error:&error]);
     1.6      XCTAssertNotNil(error);
     1.7 +    XCTAssertEqual(error.code, PEP_OUT_OF_MEMORY);
     1.8      XCTAssertEqual([self ratingForIdentity:alice session:session], PEP_rating_have_no_key);
     1.9  }
    1.10