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

Fixed cluster-specific tests #779

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

Dimedrolity
Copy link
Contributor

@Dimedrolity Dimedrolity commented Jul 28, 2022

There were 4 failed tests on Redis cluster (it were succesful on local standalone Redis). I fixed 3 tests, one test named TestCluster need to discuss. Also there is many repeating code, need to refactor after merge this PR

@Dimedrolity Dimedrolity force-pushed the feature/fix-cluster-tests branch 3 times, most recently from 2ae9e36 to 38da6f8 Compare July 29, 2022 05:59
There was double adding data to DB, because nested Convey run twice (example in docs https://github.com/smartystreets/goconvey/blob/master/convey/isolated_execution_test.go#L51). Fixed it by moving code block outside.
In case of Redis cluster, keys are distributed by nodes, so need to count keys from all masters. Added keys counting for all master nodes of cluster.
In case of Redis cluster, keys are distributed by nodes, so need to count keys from all masters. Added keys counting for all master nodes of cluster.
@Dimedrolity Dimedrolity changed the title Feature/fix cluster tests Fixed tests on Redis cluster Jul 29, 2022
@Dimedrolity Dimedrolity changed the title Fixed tests on Redis cluster Fixed cluster-specific tests Jul 29, 2022
@Dimedrolity Dimedrolity marked this pull request as ready for review July 29, 2022 06:50
@Dimedrolity Dimedrolity requested a review from a team as a code owner July 29, 2022 06:50
@Dimedrolity Dimedrolity marked this pull request as draft August 3, 2022 12:43
@Dimedrolity
Copy link
Contributor Author

Converted to draft because we can't test "cli" service right now

@Dimedrolity
Copy link
Contributor Author

In future need to merge feature/refactor-redis-cluster in feature/fix-cluster-tests to DRY in tests

@Dimedrolity Dimedrolity self-assigned this Apr 4, 2023
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.

1 participant