diff --git a/runtime/gdev/tests/integration_tests.rs b/runtime/gdev/tests/integration_tests.rs index ef4dce191d85262ad341243a4758665bf623895f..442b635d69063afb821babbde3305bb9625accef 100644 --- a/runtime/gdev/tests/integration_tests.rs +++ b/runtime/gdev/tests/integration_tests.rs @@ -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);