Skip to content

Commit

Permalink
cache: make unit test more reliable
Browse files Browse the repository at this point in the history
Signed-off-by: Vicent Marti <[email protected]>
  • Loading branch information
vmg committed Feb 2, 2021
1 parent 5f2a612 commit 4c35cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/cache/ristretto/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ func TestDropUpdates(t *testing.T) {
}
}
// Wait for all the items to be processed.
time.Sleep(time.Millisecond)
c.Wait()
// This will cause eviction from the cache.
require.True(t, c.Set("1", nil, 10))
c.Close()
Expand Down

0 comments on commit 4c35cfa

Please sign in to comment.