Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the number of acounts used in randomized tests #4661

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rs/backend/src/accounts_store/schema/proxy/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ where
// Check that the default storage is indeed a map.
assert!(accounts_db.schema_label() == SchemaLabel::Map);
// Insert some accounts
let number_of_accounts_to_migrate: u32 = rng.gen_range(0..40);
let number_of_accounts_to_migrate: u32 = rng.gen_range(0..100);
for _ in 0..number_of_accounts_to_migrate {
Operation::Insert.perform(&mut accounts_db, &mut reference_db, rng);
}
Expand All @@ -211,7 +211,7 @@ where
memory_manager.get(PartitionType::Accounts.memory_id()),
));
// Insert some accounts
let number_of_accounts_to_migrate: u32 = rng.gen_range(0..40);
let number_of_accounts_to_migrate: u32 = rng.gen_range(0..100);
for _ in 0..number_of_accounts_to_migrate {
Operation::Insert.perform(&mut accounts_db, &mut reference_db, rng);
}
Expand All @@ -230,7 +230,7 @@ where
let mut reference_db = AccountsDbAsProxy::default();
let new_accounts_db = AccountsDb::Map(AccountsDbAsMap::default());
// Insert some accounts
let number_of_accounts_to_migrate: u32 = rng.gen_range(0..40);
let number_of_accounts_to_migrate: u32 = rng.gen_range(0..100);
for _ in 0..number_of_accounts_to_migrate {
Operation::Insert.perform(&mut accounts_db, &mut reference_db, rng);
}
Expand Down