diff options
Diffstat (limited to 'tests/unit/networking.tcl')
-rw-r--r-- | tests/unit/networking.tcl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/unit/networking.tcl b/tests/unit/networking.tcl index 559a88e74..79d6e399d 100644 --- a/tests/unit/networking.tcl +++ b/tests/unit/networking.tcl @@ -121,7 +121,14 @@ start_server {config "minimal.conf" tags {"external:skip"}} { # Make sure bind parameter is as expected and server handles binding # accordingly. - assert_equal {bind {}} [rediscli_exec 0 config get bind] + # (it seems that rediscli_exec behaves differently in RESP3, possibly + # because CONFIG GET returns a dict instead of a list so redis-cli emits + # it in a single line) + if {$::force_resp3} { + assert_equal {{bind }} [rediscli_exec 0 config get bind] + } else { + assert_equal {bind {}} [rediscli_exec 0 config get bind] + } catch {reconnect 0} err assert_match {*connection refused*} $err |