test/blacklist_test.cc
branchENGINE-289
changeset 2401 f5aa974726e1
parent 2371 05c495924fde
child 2408 489d984ff68f
     1.1 --- a/test/blacklist_test.cc	Wed Jan 17 01:18:18 2018 +0100
     1.2 +++ b/test/blacklist_test.cc	Wed Jan 17 12:23:44 2018 +0100
     1.3 @@ -130,10 +130,11 @@
     1.4                                                         "Blacklist Keypair");
     1.5      PEP_STATUS status15 = update_identity(session, blacklisted_identity2);
     1.6  
     1.7 -    if (blacklisted_identity->fpr && strcmp(blacklisted_identity->fpr, bl_fpr_2) == 0)
     1.8 +    assert(blacklisted_identity2->fpr && strcmp(blacklisted_identity2->fpr, bl_fpr_2) == 0);
     1.9 +    if (blacklisted_identity2->fpr && strcmp(blacklisted_identity2->fpr, bl_fpr_2) == 0)
    1.10          cout << "blacklisted identity's fpr successfully replaced by the unblacklisted one" << endl;
    1.11 -    else
    1.12 -        cout << "blacklisted_identity->fpr should be " << bl_fpr_2 << " but is " << blacklisted_identity->fpr << endl;
    1.13 +    // else
    1.14 +    //     cout << "blacklisted_identity->fpr should be " << bl_fpr_2 << " but is " << blacklisted_identity->fpr << endl;
    1.15      
    1.16      PEP_STATUS status12 = blacklist_delete(session, bl_fpr_1);
    1.17      PEP_STATUS status13 = update_identity(session, blacklisted_identity);