Fixed apple_mail_test - confusion with myself, update_identity, set_identity rules. ENGINE-9
authorKrista Bennett <krista@pep-project.org>
Fri, 09 Jun 2017 13:48:33 +0200
branchENGINE-9
changeset 18377d8f5f3d1561
parent 1836 95c3f32ac151
child 1838 5a5dd9d34d8a
Fixed apple_mail_test - confusion with myself, update_identity, set_identity rules.
test/apple_mail_test.cc
     1.1 --- a/test/apple_mail_test.cc	Fri Jun 09 11:56:11 2017 +0200
     1.2 +++ b/test/apple_mail_test.cc	Fri Jun 09 13:48:33 2017 +0200
     1.3 @@ -33,11 +33,9 @@
     1.4      PEP_STATUS statuskey3 = import_key(session, keytextkey3.c_str(), keytextkey3.length(), NULL);
     1.5          
     1.6      const string mailtext = slurp(mailfile);
     1.7 -    pEp_identity * me = new_identity("pep.test.recip@kgrothoff.org", NULL, PEP_OWN_USERID, "pEp Test Recipient");    
     1.8 +    pEp_identity * me = new_identity("pep.test.recip@kgrothoff.org", "93D19F24AD6F4C4BA9134AAF84D9217908DB0AEE", PEP_OWN_USERID, "pEp Test Recipient");    
     1.9      me->me = true;    
    1.10 -    PEP_STATUS status = update_identity(session, me);
    1.11 -    trust_personal_key(session, me);    
    1.12 -    status = update_identity(session, me);
    1.13 +    PEP_STATUS status = myself(session, me);
    1.14      
    1.15      pEp_identity * you = new_identity("pep.test.apple@pep-project.org", NULL, "TOFU_pep.test.apple@pep-project.org", "pEp Test Recipient");    
    1.16      you->me = false;