Skip to content

Commit

Permalink
test: increase sleep time in expirable tests
Browse files Browse the repository at this point in the history
The github workflows are failing.
  • Loading branch information
mgaffney committed Aug 8, 2023
1 parent 8d433cc commit 99d7b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions expirable/expirable_lru_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func TestLoadingExpired(t *testing.T) {
t.Fatalf("should be true")
}

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

// wait for cache to expire
time.Sleep(time.Millisecond * 12)
time.Sleep(time.Millisecond * 100)

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

0 comments on commit 99d7b17

Please sign in to comment.