radicle/cob/identity: Strengthen test assumptions

Not only assert that the revision is active, but
also its parent.
This commit is contained in:
Lorenz Leutgeb 2026-03-31 23:35:59 +02:00 committed by Fintan Halpenny
parent ee17109501
commit 442df34be7
1 changed files with 4 additions and 1 deletions

View File

@ -1482,7 +1482,10 @@ mod test {
&eve_doc.verified().unwrap(), &eve_doc.verified().unwrap(),
) )
.unwrap(); .unwrap();
assert!(eve_identity.revision(&e2).unwrap().is_active());
let eve_revision = eve_identity.revision(&e2).unwrap();
assert_eq!(eve_revision.state, State::Active);
assert_eq!(eve_revision.parent, Some(a1));
// e2 (Propose "Change visibility") 1/2 // e2 (Propose "Change visibility") 1/2
// | // |