diff --git a/README.md b/README.md index a942eb5..0409902 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ func main() { } // wait for cache to expire - time.Sleep(time.Millisecond * 12) + time.Sleep(time.Millisecond * 150) // get value under key1 after key expiration r, ok = cache.Get("key1") diff --git a/expirable/expirable_lru_test.go b/expirable/expirable_lru_test.go index fd3b255..635faaa 100644 --- a/expirable/expirable_lru_test.go +++ b/expirable/expirable_lru_test.go @@ -504,7 +504,7 @@ func ExampleLRU() { } // wait for cache to expire - time.Sleep(time.Millisecond * 100) + time.Sleep(time.Millisecond * 150) // get value under key1 after key expiration r, ok = cache.Get("key1")