From a0466cbed6a91470e8ff9746ee89e3a82aa071ec Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Mon, 18 Dec 2023 12:35:21 +0100 Subject: [PATCH] add more details to idty creation test --- runtime/gdev/tests/integration_tests.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/runtime/gdev/tests/integration_tests.rs b/runtime/gdev/tests/integration_tests.rs index ef4dce191..442b635d6 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); -- GitLab