Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7a7c6045
Commit
7a7c6045
authored
Dec 24, 2020
by
xhe
Browse files
add a test
Signed-off-by:
xhe
<
xw897002528@gmail.com
>
parent
2e8f8c9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/tracking.tcl
View file @
7a7c6045
...
@@ -135,6 +135,26 @@ start_server {tags {"tracking"}} {
...
@@ -135,6 +135,26 @@ start_server {tags {"tracking"}} {
assert
{[
lindex $reply 2
]
eq
{
proto 3
}}
assert
{[
lindex $reply 2
]
eq
{
proto 3
}}
}
}
test
{
HELLO without protover
}
{
set reply
[
r HELLO 3
]
assert
{[
lindex $reply 2
]
eq
{
proto 3
}}
set reply
[
r HELLO
]
assert
{[
lindex $reply 2
]
eq
{
proto 3
}}
set reply
[
r HELLO
]
assert
{[
lindex $reply 2
]
eq
{
proto 3
}}
set reply
[
r HELLO 2
]
assert
{[
lindex $reply 2
]
eq
{
proto 2
}}
set reply
[
r HELLO
]
assert
{[
lindex $reply 2
]
eq
{
proto 2
}}
set reply
[
r HELLO
]
assert
{[
lindex $reply 2
]
eq
{
proto 2
}}
}
test
{
RESP3 based basic invalidation
}
{
test
{
RESP3 based basic invalidation
}
{
r CLIENT TRACKING off
r CLIENT TRACKING off
r CLIENT TRACKING on
r CLIENT TRACKING on
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment