Skip to content

Commit

Permalink
chore(host): Reduce disk<->mem KV proptest runs (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored and refcell committed Oct 18, 2024
1 parent f3d4a53 commit 343b6b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/host/src/kv/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ mod test {
arbitrary::any,
collection::{hash_map, vec},
proptest,
test_runner::Config,
};
use std::env::temp_dir;

proptest! {
#![proptest_config(Config::with_cases(16))]

/// Test that converting from a [DiskKeyValueStore] to a [MemoryKeyValueStore] is lossless.
#[test]
fn convert_disk_kv_to_mem_kv(k_v in hash_map(any::<[u8; 32]>(), vec(any::<u8>(), 0..128), 1..128)) {
Expand Down

0 comments on commit 343b6b4

Please sign in to comment.