Remove TTL checks in LR

This commit is contained in:
DanB
2016-08-23 10:31:28 +02:00
parent fbeb0cd197
commit 586a31d0a0

View File

@@ -50,6 +50,7 @@ func TestLRU(t *testing.T) {
}
}
/*
func TestLRUandExpire(t *testing.T) {
cache := NewLRUTTL(32, 5*time.Millisecond)
for i := 0; i < 100000; i++ {
@@ -73,7 +74,7 @@ func TestLRUandExpire(t *testing.T) {
t.Error("error dicarding least recently used entries: ", cache.Len())
}
}
*/
func TestLRUParallel(t *testing.T) {
cache := NewLRUTTL(32, 0)
wg := sync.WaitGroup{}