Fix new subscribe mode test in reply-schemas-validator#11939
Merged
oranagra merged 3 commits intoredis:unstablefrom Mar 20, 2023
Merged
Fix new subscribe mode test in reply-schemas-validator#11939oranagra merged 3 commits intoredis:unstablefrom
oranagra merged 3 commits intoredis:unstablefrom
Conversation
The reason is in reply-schemas-validator, the resp of the
client we create will be client_default_resp (currently 3):
```
client *createClient(connection *conn) {
client *c = zmalloc(sizeof(client));
#ifdef LOG_REQ_RES
reqresReset(c, 0);
c->resp = server.client_default_resp;
#else
c->resp = 2;
#endif
}
```
But current_resp3 in redis-cli will be inconsistent with it,
the test adds a simple hello 3 to avoid this failure, test
was added in redis#11873.
Added help descriptions for log-req-res, force-resp3 and
dont-pre-clean options, options was added in redis#10273
Contributor
Author
I chose the easiest way to fix it. did not modify the assignment of current_resp3 in redis-cli (@zuiderkwast FYI. or maybe you have a better way... ), because this adds a bit of code complexity, and LOG_REQ_RES should only be used for our tests for now |
enjoy-binbin
commented
Mar 20, 2023
zuiderkwast
reviewed
Mar 20, 2023
Contributor
zuiderkwast
left a comment
There was a problem hiding this comment.
Test case LGTM
Thanks for fixing!
oranagra
approved these changes
Mar 20, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The reason is in reply-schemas-validator, the resp of the
client we create will be client_default_resp (currently 3):
But current_resp3 in redis-cli will be inconsistent with it,
the test adds a simple hello 3 to avoid this failure, test
was added in #11873.
Added help descriptions for dont-pre-clean option, it was
added in #10273