We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33eb2a7 commit a6696f7Copy full SHA for a6696f7
src/segment/reader.rs
@@ -299,7 +299,7 @@ mod tests {
299
#[test]
300
#[allow(clippy::expect_used)]
301
fn reader_full_scan_bounded_memory() -> crate::Result<()> {
302
- const ITEM_COUNT: u64 = 10_000_000;
+ const ITEM_COUNT: u64 = 1_000_000;
303
304
let folder = tempfile::tempdir()?.into_path();
305
@@ -312,14 +312,8 @@ mod tests {
312
bloom_fp_rate: 0.01,
313
})?;
314
315
- let items = (0u64..ITEM_COUNT).map(|i| {
316
- Value::new(
317
- i.to_be_bytes(),
318
- nanoid::nanoid!().as_bytes(),
319
- 1000 + i,
320
- ValueType::Value,
321
- )
322
- });
+ let items = (0u64..ITEM_COUNT)
+ .map(|i| Value::new(i.to_be_bytes(), *b"asd", 1000 + i, ValueType::Value));
323
324
for item in items {
325
writer.write(item)?;
0 commit comments