Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiling-J committed Oct 26, 2024
1 parent 27771de commit 6548371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loading_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestLoadingCache_SetWithTTL(t *testing.T) {
require.Equal(t, 1, client.Len())
require.Equal(t, 1, counter)

time.Sleep(2 * time.Second)
time.Sleep(3 * time.Second)

v, err = client.Get(context.TODO(), "foo")
require.Nil(t, err)
Expand Down

0 comments on commit 6548371

Please sign in to comment.