git.delta.rocks / unique-network / refs/commits / 9cc291b2cdbf

difftreelog

fix unit test

Daniel Shiposha2023-10-25parent: #3356493.patch.diff
in: master

1 file changed

modifiedruntime/tests/src/tests.rsdiffbeforeafterboth
2357#[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);
23612362
2362 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 };
23772378
2378 // 11-th collection in chain. Expects error2379 // 11-th collection in chain. Expects error
2380 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