From d38df59a3f79c3781e98f8b94f4296fa0ad6d25f Mon Sep 17 00:00:00 2001 From: Oran Agra Date: Wed, 22 Mar 2023 14:32:36 +0200 Subject: fix CLIENT SETINFO to use error replies instead of status replies (#11952) --- tests/unit/introspection.tcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/unit/introspection.tcl b/tests/unit/introspection.tcl index c8bc3eb89..4452de6b1 100644 --- a/tests/unit/introspection.tcl +++ b/tests/unit/introspection.tcl @@ -333,9 +333,9 @@ start_server {tags {"introspection"}} { test {CLIENT SETINFO invalid args} { assert_error {*wrong number of arguments*} {r CLIENT SETINFO lib-name} - assert_match {*cannot contain spaces*} [r CLIENT SETINFO lib-name "redis py"] - assert_match {*newlines*} [r CLIENT SETINFO lib-name "redis.py\n"] - assert_match {*Unrecognized*} [r CLIENT SETINFO badger hamster] + assert_error {*cannot contain spaces*} {r CLIENT SETINFO lib-name "redis py"} + assert_error {*newlines*} {r CLIENT SETINFO lib-name "redis.py\n"} + assert_error {*Unrecognized*} {r CLIENT SETINFO badger hamster} # test that all of these didn't affect the previously set values r client info } {*lib-name=redis.py lib-ver=1.2.3*} -- cgit v1.2.1