mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-05 16:06:57 +08:00
Use memory footprint of sugardb.store to compare against max memory for eviction policies (#133)
Improved memory usage reporting. - @osteensco
This commit is contained in:
@@ -3353,7 +3353,7 @@ func Test_LFU_Generic(t *testing.T) {
|
||||
DataDir: "",
|
||||
EvictionPolicy: constants.AllKeysLFU,
|
||||
EvictionInterval: duration,
|
||||
MaxMemory: 4000000,
|
||||
MaxMemory: 550,
|
||||
}),
|
||||
)
|
||||
if err != nil {
|
||||
@@ -3534,7 +3534,7 @@ func Test_LRU_Generic(t *testing.T) {
|
||||
DataDir: "",
|
||||
EvictionPolicy: constants.AllKeysLRU,
|
||||
EvictionInterval: duration,
|
||||
MaxMemory: 4000000,
|
||||
MaxMemory: 550,
|
||||
}),
|
||||
)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user