Skip to content
Snippets Groups Projects
Commit 8efd11a7 authored by Éloïs's avatar Éloïs
Browse files

tests(wot): reproduce bug #51

parent e35d3f19
No related branches found
No related tags found
1 merge request!57Fix #51 pending membership expiration seem s to revoke a validated identity
......@@ -155,6 +155,18 @@ fn test_new_idty_validation() {
WotDiff::AddLink(2, 6)
]
);
// After PendingMembershipPeriod, Ferdie identity should not expire
run_to_block(6);
assert_eq!(
Identity::identity(6),
Some(pallet_identity::IdtyValue {
next_creatable_identity_on: 0,
owner_key: 6,
removable_on: 0,
status: IdtyStatus::Validated,
})
);
});
}
......
......@@ -77,7 +77,7 @@ impl Default for IdtyStatus {
}
}
#[cfg_attr(feature = "std", derive(Deserialize, Serialize))]
#[cfg_attr(feature = "std", derive(Debug, Deserialize, Serialize))]
#[derive(Encode, Decode, Clone, PartialEq, Eq, TypeInfo)]
pub struct IdtyValue<BlockNumber, AccountId> {
pub next_creatable_identity_on: BlockNumber,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment