From fcb456157e9b1f3801dded651996ca3d14acbe77 Mon Sep 17 00:00:00 2001 From: irenarindos Date: Thu, 31 Aug 2023 11:33:24 -0400 Subject: [PATCH] fixup! expirable LRU: fix so that Get/Peek cannot return an ok and empty value --- expirable/expirable_lru_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expirable/expirable_lru_test.go b/expirable/expirable_lru_test.go index fa6a345..fd3b255 100644 --- a/expirable/expirable_lru_test.go +++ b/expirable/expirable_lru_test.go @@ -400,7 +400,7 @@ func TestLoadingExpired(t *testing.T) { } } - time.Sleep(time.Millisecond * 2) // wait for expiration reaper + time.Sleep(time.Millisecond * 100) // wait for expiration reaper if lc.Len() != 0 { t.Fatalf("length differs from expected") }