Commit 7a7c6045 authored by xhe's avatar xhe
Browse files

add a test


Signed-off-by: default avatarxhe <xw897002528@gmail.com>
parent 2e8f8c9b
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment