-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Tests: add a way to read raw RESP protocol reponses #9193
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
Conversation
This makes it possible to distinguish between null response and an empty array (currently the tests infra translates both to an empty string/list)
zuiderkwast
left a comment
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.
Beautiful!
|
side note: i used to hate TCL...i still do.. |
madolson
left a comment
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.
TCL is a pretty good language for writing tests, but I will always hate it though because it caused Redis to have a bizarre type system. All integers are strings but not all strings are integers, sure, makes sense.
> incr foo
(integer) 1
> append foo hi
3
> get foo
"1hi"
|
@madolson yeah.. you don't even need append ([Edited] Append returns |
This makes it possible to distinguish between null response and an empty array (currently the tests infra translates both to an empty string/list) (cherry picked from commit 7103367)
This makes it possible to distinguish between null response and an empty array (currently the tests infra translates both to an empty string/list)
This makes it possible to distinguish between null response and an empty
array (currently the tests infra translates both to an empty string/list)