From 7a7c60459e0853b1880bd1692fb15c4b67e00fa9 Mon Sep 17 00:00:00 2001 From: xhe Date: Thu, 24 Dec 2020 15:26:24 +0800 Subject: [PATCH] add a test Signed-off-by: xhe --- tests/unit/tracking.tcl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/unit/tracking.tcl b/tests/unit/tracking.tcl index fc2800791..deecc1d06 100644 --- a/tests/unit/tracking.tcl +++ b/tests/unit/tracking.tcl @@ -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