From 314605e149007346d64fd48aad89635f1cc85bc0 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Thu, 2 Dec 2021 12:09:37 -0600 Subject: [PATCH] AcctIdx: test cleanup (#21550) --- runtime/src/accounts_index.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(),