add a test

Signed-off-by: xhe <xw897002528@gmail.com>
This commit is contained in:
xhe 2020-12-24 15:26:24 +08:00
parent 2e8f8c9b0c
commit 7a7c60459e

View File

@ -135,6 +135,26 @@ start_server {tags {"tracking"}} {
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} {
r CLIENT TRACKING off
r CLIENT TRACKING on