Skip to content
Snippets Groups Projects
Commit a0a4054f authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

add more details to idty creation test

parent 54d8caf9
No related branches found
No related tags found
No related merge requests found
Pipeline #34929 waiting for manual action
......@@ -957,12 +957,22 @@ fn test_create_new_idty_without_founds() {
.build()
.execute_with(|| {
run_to_block(2);
assert_eq!(
Balances::free_balance(AccountKeyring::Eve.to_account_id()),
0
);
// Should be able to create an identity without founds
assert_ok!(Identity::create_identity(
frame_system::RawOrigin::Signed(AccountKeyring::Alice.to_account_id()).into(),
AccountKeyring::Eve.to_account_id(),
));
System::assert_has_event(RuntimeEvent::Identity(
pallet_identity::Event::IdtyCreated {
idty_index: 5,
owner_key: AccountKeyring::Eve.to_account_id(),
},
));
// At next block, nothing should be preleved
run_to_block(3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment