db: check that partially revoked email addresses work correctly after publishing
This commit is contained in:
parent
cdda40e126
commit
c3d4b448a5
|
@ -1001,7 +1001,12 @@ pub fn test_same_email_3(db: &mut impl Database, log_path: &Path) {
|
||||||
unparsed_uids: 0,
|
unparsed_uids: 0,
|
||||||
}, tpk_status);
|
}, tpk_status);
|
||||||
|
|
||||||
// fetch by both user ids. We should still get both user ids.
|
assert_eq!(get_userids(&db.by_email(&email).unwrap()[..]),
|
||||||
|
vec![ uid2.clone() ]);
|
||||||
|
|
||||||
|
// make sure this survives depulication and publication of that same email address
|
||||||
|
db.set_email_unpublished(&fpr, &email);
|
||||||
|
db.set_email_published(&fpr, &email);
|
||||||
assert_eq!(get_userids(&db.by_email(&email).unwrap()[..]),
|
assert_eq!(get_userids(&db.by_email(&email).unwrap()[..]),
|
||||||
vec![ uid2.clone() ]);
|
vec![ uid2.clone() ]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue