Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
05d219a6
You need to sign in or sign up before continuing.
Commit
05d219a6
authored
Jan 08, 2014
by
antirez
Browse files
Test: stress events flags to/from string conversion.
parent
2a1a31ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/pubsub.tcl
View file @
05d219a6
...
@@ -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
{
$lshzxe
KE
}
assert_equal
{
$lshzxe
KE
}
[
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
]
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment