make test pass with 1 bin to remove noisy failure during testing (#19554)
This commit is contained in:
committed by
GitHub
parent
dd9481c403
commit
a5f74d86c8
@ -12443,14 +12443,15 @@ pub mod tests {
|
|||||||
];
|
];
|
||||||
// make sure accounts are in 2 different bins
|
// make sure accounts are in 2 different bins
|
||||||
assert!(
|
assert!(
|
||||||
accounts
|
(accounts.accounts_index.bins() == 1)
|
||||||
|
^ (accounts
|
||||||
.accounts_index
|
.accounts_index
|
||||||
.bin_calculator
|
.bin_calculator
|
||||||
.bin_from_pubkey(&keys[0])
|
.bin_from_pubkey(&keys[0])
|
||||||
!= accounts
|
!= accounts
|
||||||
.accounts_index
|
.accounts_index
|
||||||
.bin_calculator
|
.bin_calculator
|
||||||
.bin_from_pubkey(&keys[1])
|
.bin_from_pubkey(&keys[1]))
|
||||||
);
|
);
|
||||||
let account = AccountSharedData::new(1, 1, AccountSharedData::default().owner());
|
let account = AccountSharedData::new(1, 1, AccountSharedData::default().owner());
|
||||||
let account_big = AccountSharedData::new(1, 1000, AccountSharedData::default().owner());
|
let account_big = AccountSharedData::new(1, 1000, AccountSharedData::default().owner());
|
||||||
|
Reference in New Issue
Block a user