mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-27 01:41:04 +08:00
Added support for multiple databases on the evictKeysWithExpiredTTL function
This commit is contained in:
@@ -40,7 +40,7 @@ func Test_CacheLRU(t *testing.T) {
|
||||
ticker.Stop()
|
||||
|
||||
for i := len(access) - 1; i >= 0; i-- {
|
||||
key := heap.Pop(&cache).(string)
|
||||
key := heap.Pop(cache).(string)
|
||||
if key != access[i] {
|
||||
t.Errorf("expected key at index %d to be %s, got %s", i, access[i], key)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user