From 9cc291b2cdbff762f059fcc835b8e0e129ec71a4 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Wed, 25 Oct 2023 13:12:00 +0000 Subject: [PATCH] fix: unit test --- --- a/runtime/tests/src/tests.rs +++ b/runtime/tests/src/tests.rs @@ -2357,7 +2357,8 @@ #[test] fn total_number_collections_bound_neg() { new_test_ext().execute_with(|| { - let origin1 = RuntimeOrigin::signed(1); + let user = 1; + let origin1 = RuntimeOrigin::signed(user); for i in 1..=COLLECTION_NUMBER_LIMIT { create_test_collection(&CollectionMode::NFT, CollectionId(i)); @@ -2376,6 +2377,7 @@ }; // 11-th collection in chain. Expects error + add_balance(user, CollectionCreationPrice::get() as u64 + 1); assert_noop!( Unique::create_collection_ex(origin1, data), CommonError::::TotalCollectionsLimitExceeded -- gitstuff