diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index 1f8cf862f5..85360381a6 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -2929,7 +2929,7 @@ pub mod tests { to_raw_first, ) .into_account_map_entry(&index.storage.storage); - assert_eq!(new_entry.ref_count.load(Ordering::Relaxed), 0); + assert_eq!(new_entry.ref_count(), 0); assert_eq!(new_entry.slot_list.read().unwrap().capacity(), 1); assert_eq!( new_entry.slot_list.read().unwrap().to_vec(), @@ -2948,7 +2948,7 @@ pub mod tests { to_raw_first, ) .into_account_map_entry(&index.storage.storage); - assert_eq!(new_entry.ref_count.load(Ordering::Relaxed), 1); + assert_eq!(new_entry.ref_count(), 1); assert_eq!(new_entry.slot_list.read().unwrap().capacity(), 1); assert_eq!( new_entry.slot_list.read().unwrap().to_vec(),