-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: convert the example in issue #300 into a test case #302
Conversation
The new commit-id 16df11e can fix the issue
@janisz |
bigcache_test.go
Outdated
MaxEntrySize: 52, | ||
}) | ||
cache.Set("a", blob(0xff, 235)) | ||
time.Sleep(2 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not sleep in tests. Please use mockedClock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced time.Sleep with mockedClock.Please take a look
@contestjia Coul you fix formatting to pass linter? |
@janisz yes, i fixed |
Codecov Report
@@ Coverage Diff @@
## master #302 +/- ##
==========================================
+ Coverage 88.78% 89.30% +0.52%
==========================================
Files 15 15
Lines 767 767
==========================================
+ Hits 681 685 +4
+ Misses 72 69 -3
+ Partials 14 13 -1
Continue to review full report at Codecov.
|
The new commit-id 16df11e can fix the issue