Skip to content

Commit 99d7b17

Browse files
committed
test: increase sleep time in expirable tests
The github workflows are failing.
1 parent 8d433cc commit 99d7b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

expirable/expirable_lru_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ func TestLoadingExpired(t *testing.T) {
387387
t.Fatalf("should be true")
388388
}
389389

390-
time.Sleep(time.Millisecond * 10) // wait for entry to expire
390+
time.Sleep(time.Millisecond * 100) // wait for entry to expire
391391
if lc.Len() != 0 {
392392
t.Fatalf("length differs from expected")
393393
}
@@ -491,7 +491,7 @@ func ExampleLRU() {
491491
}
492492

493493
// wait for cache to expire
494-
time.Sleep(time.Millisecond * 12)
494+
time.Sleep(time.Millisecond * 100)
495495

496496
// get value under key1 after key expiration
497497
r, ok = cache.Get("key1")

0 commit comments

Comments
 (0)