提交 05d219a6 编写于 作者: A antirez

Test: stress events flags to/from string conversion.

上级 2a1a31ca
...@@ -356,4 +356,15 @@ start_server {tags {"pubsub"}} { ...@@ -356,4 +356,15 @@ start_server {tags {"pubsub"}} {
r config set maxmemory 0 r config set maxmemory 0
$rd1 close $rd1 close
} }
test "Keyspace notifications: test CONFIG GET/SET of event flags" {
r config set notify-keyspace-events gKE
assert_equal {gKE} [lindex [r config get notify-keyspace-events] 1]
r config set notify-keyspace-events {$lshzxeKE}
assert_equal {$lshzxeKE} [lindex [r config get notify-keyspace-events] 1]
r config set notify-keyspace-events KA
assert_equal {AK} [lindex [r config get notify-keyspace-events] 1]
r config set notify-keyspace-events EA
assert_equal {AE} [lindex [r config get notify-keyspace-events] 1]
}
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册