-
Notifications
You must be signed in to change notification settings - Fork 184
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
improve the test coverage on rueidisprob #778
Conversation
rueidisprob/slidingbloomfilter.go
Outdated
redis.call('SET', nextCounterKey, 0) | ||
redis.call('DEL', lastRotationKey) | ||
|
||
return 1 |
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.
Why do you need these changes?
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 prefer deleting instead of setting to zero for a cleaner, more efficient reset. Deleting ensures no leftover data affects future operations, more accurately reflects the expected state of a new filter or counter.
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.
If you have concern about this, i can change it.
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.
Let’s do it in another PR.
rueidisprob/slidingbloomfilter.go
Outdated
redis.call('SET', nextCounterKey, 0) | ||
redis.call('DEL', lastRotationKey) | ||
|
||
return 1 |
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.
Let’s do it in another PR.
@@ -31,6 +31,8 @@ func TestNewSlidingBloomFilter(t *testing.T) { | |||
t.Error(err) | |||
} | |||
|
|||
fmt.Println(bf) |
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.
fmt.Println(bf) |
Closes #774