git.delta.rocks / unique-network / refs/commits / 4819755773f4

difftreelog

fix unit tests

Daniel Shiposha2023-10-13parent: #1367a5f.patch.diff
in: master

2 files changed

modifiedruntime/tests/src/lib.rsdiffbeforeafterboth
292 type WeightInfo = ();292 type WeightInfo = ();
293 type CommonWeightInfo = CommonWeights<Self>;293 type CommonWeightInfo = CommonWeights<Self>;
294 type RefungibleExtensionsWeightInfo = CommonWeights<Self>;294 type RefungibleExtensionsWeightInfo = CommonWeights<Self>;
295 type StructureWeightInfo = pallet_structure::weights::SubstrateWeight<Self>;
295}296}
296297
297// Build genesis storage according to the mock runtime.298// Build genesis storage according to the mock runtime.
modifiedruntime/tests/src/tests.rsdiffbeforeafterboth
--- a/runtime/tests/src/tests.rs
+++ b/runtime/tests/src/tests.rs
@@ -2624,10 +2624,10 @@
 
 	use super::*;
 
-	fn test<FTE: FnOnce() -> bool>(
+	fn test(
 		i: usize,
 		test_case: &pallet_common::tests::TestCase,
-		check_token_existence: &mut LazyValue<bool, FTE>,
+		check_token_existence: &mut LazyValue<bool>,
 	) {
 		let collection_admin = test_case.collection_admin;
 		let mut is_collection_admin = LazyValue::new(|| test_case.is_collection_admin);
@@ -2635,7 +2635,7 @@
 		let mut is_token_owner = LazyValue::new(|| Ok(test_case.is_token_owner));
 		let is_no_permission = test_case.no_permission;
 
-		let result = pallet_common::tests::check_token_permissions::<Test, _, _, FTE>(
+		let result = pallet_common::tests::check_token_permissions::<Test>(
 			collection_admin,
 			token_owner,
 			&mut is_collection_admin,