From 0657bf48ae0e16c764c7f6fab063258767fa8ed2 Mon Sep 17 00:00:00 2001 From: Li0k Date: Tue, 21 Jun 2022 10:37:11 +0800 Subject: [PATCH] fix(storage): fix slow unit-test in compactor_test --- src/storage/src/hummock/compactor_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/src/hummock/compactor_tests.rs b/src/storage/src/hummock/compactor_tests.rs index ac1f39e2c6083..ef8884788c45d 100644 --- a/src/storage/src/hummock/compactor_tests.rs +++ b/src/storage/src/hummock/compactor_tests.rs @@ -87,7 +87,7 @@ mod tests { // 1. add sstables let key = Bytes::from(&b"same_key"[..]); - let val = Bytes::from(b"0"[..].repeat(4 << 20)); // 4MB value + let val = Bytes::from(b"0"[..].repeat(1 << 20)); // 1MB value let kv_count = 128; let mut epoch: u64 = 1; for _ in 0..kv_count { @@ -189,7 +189,7 @@ mod tests { }; // 1. add sstables - let val = Bytes::from(b"0"[..].repeat(4 << 20)); // 4MB value + let val = Bytes::from(b"0"[..].repeat(1 << 10)); // 1024 Byte value let keyspace = Keyspace::table_root(storage.clone(), &TableId::new(1)); let kv_count = 128; @@ -270,7 +270,7 @@ mod tests { }; // 1. add sstables - let val = Bytes::from(b"0"[..].repeat(4 << 20)); // 4MB value + let val = Bytes::from(b"0"[..].repeat(1 << 10)); // 1024 Byte value let drop_table_id = 1; let existing_table_ids = 2;