From 4c035b85c8eae35de80c3e627f98d7e14f82c0dd Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi Date: Wed, 5 Jun 2024 14:32:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Oliver Tale-Yazdi --- .../src/storage/generator/double_map.rs | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/substrate/frame/support/src/storage/generator/double_map.rs b/substrate/frame/support/src/storage/generator/double_map.rs index 824c94d662aa..a4c1f58203e3 100644 --- a/substrate/frame/support/src/storage/generator/double_map.rs +++ b/substrate/frame/support/src/storage/generator/double_map.rs @@ -511,7 +511,6 @@ where mod test_iterators { use crate::{ hash::StorageHasher, - pallet_prelude::ValueQuery, storage::{ generator::{tests::*, StorageDoubleMap}, unhashed, @@ -519,27 +518,6 @@ mod test_iterators { }; use codec::Encode; - #[test] - fn mutate_return_none_still_modifies() { - sp_io::TestExternalities::default().execute_with(|| { - use crate::hash::Identity; - #[crate::storage_alias] - type MyDoubleMap = - StorageDoubleMap; - - // Insert one value - MyDoubleMap::insert(1, 1, 2); - - MyDoubleMap::try_mutate(1, 1, |v| { - assert_eq!(*v, 2); - *v = 3; - Err::(()) - }); - - assert_eq!(MyDoubleMap::get(1, 1), 2); - }); - } - #[test] fn double_map_iter_from() { sp_io::TestExternalities::default().execute_with(|| {