Skip to content

Commit a6696f7

Browse files
committed
adjust tests
1 parent 33eb2a7 commit a6696f7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/segment/reader.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ mod tests {
299299
#[test]
300300
#[allow(clippy::expect_used)]
301301
fn reader_full_scan_bounded_memory() -> crate::Result<()> {
302-
const ITEM_COUNT: u64 = 10_000_000;
302+
const ITEM_COUNT: u64 = 1_000_000;
303303

304304
let folder = tempfile::tempdir()?.into_path();
305305

@@ -312,14 +312,8 @@ mod tests {
312312
bloom_fp_rate: 0.01,
313313
})?;
314314

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-
});
315+
let items = (0u64..ITEM_COUNT)
316+
.map(|i| Value::new(i.to_be_bytes(), *b"asd", 1000 + i, ValueType::Value));
323317

324318
for item in items {
325319
writer.write(item)?;

0 commit comments

Comments
 (0)