make test pass with 1 bin to remove noisy failure during testing (#19554)

This commit is contained in:
Jeff Washington (jwash) 2021-09-01 15:58:56 -05:00 committed by GitHub
parent dd9481c403
commit a5f74d86c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -12443,14 +12443,15 @@ pub mod tests {
];
// make sure accounts are in 2 different bins
assert!(
accounts
.accounts_index
.bin_calculator
.bin_from_pubkey(&keys[0])
!= accounts
(accounts.accounts_index.bins() == 1)
^ (accounts
.accounts_index
.bin_calculator
.bin_from_pubkey(&keys[1])
.bin_from_pubkey(&keys[0])
!= accounts
.accounts_index
.bin_calculator
.bin_from_pubkey(&keys[1]))
);
let account = AccountSharedData::new(1, 1, AccountSharedData::default().owner());
let account_big = AccountSharedData::new(1, 1000, AccountSharedData::default().owner());