difftreelog
fix unit test
in: master
1 file changed
runtime/tests/src/tests.rsdiffbeforeafterboth2357#[test]2357#[test]2358fn total_number_collections_bound_neg() {2358fn total_number_collections_bound_neg() {2359 new_test_ext().execute_with(|| {2359 new_test_ext().execute_with(|| {2360 let user = 1;2360 let origin1 = RuntimeOrigin::signed(1);2361 let origin1 = RuntimeOrigin::signed(user);236123622362 for i in 1..=COLLECTION_NUMBER_LIMIT {2363 for i in 1..=COLLECTION_NUMBER_LIMIT {2363 create_test_collection(&CollectionMode::NFT, CollectionId(i));2364 create_test_collection(&CollectionMode::NFT, CollectionId(i));2376 };2377 };237723782378 // 11-th collection in chain. Expects error2379 // 11-th collection in chain. Expects error2380 add_balance(user, CollectionCreationPrice::get() as u64 + 1);2379 assert_noop!(2381 assert_noop!(2380 Unique::create_collection_ex(origin1, data),2382 Unique::create_collection_ex(origin1, data),2381 CommonError::<Test>::TotalCollectionsLimitExceeded2383 CommonError::<Test>::TotalCollectionsLimitExceeded