Skip to content
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

Merged
merged 4 commits into from
Feb 24, 2025
Merged

improve the test coverage on rueidisprob #778

merged 4 commits into from
Feb 24, 2025

Conversation

EminCimen
Copy link
Contributor

@EminCimen EminCimen commented Feb 24, 2025

Closes #774

redis.call('SET', nextCounterKey, 0)
redis.call('DEL', lastRotationKey)

return 1
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

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.

@EminCimen EminCimen marked this pull request as ready for review February 24, 2025 08:12
redis.call('SET', nextCounterKey, 0)
redis.call('DEL', lastRotationKey)

return 1
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fmt.Println(bf)

@EminCimen EminCimen requested a review from rueian February 24, 2025 10:03
@rueian rueian merged commit cf2f069 into redis:main Feb 24, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to improve the test coverage on rueidisprob
2 participants