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
7459652e
Unverified
Commit
7459652e
authored
Dec 02, 2020
by
Itamar Haber
Committed by
GitHub
Dec 02, 2020
Browse files
Fix ACL Pub/Sub test timings (#8122)
parent
b55a827e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/acl.tcl
View file @
7459652e
...
...
@@ -143,8 +143,11 @@ start_server {tags {"acl"}} {
set rd
[
redis_deferring_client
]
r ACL setuser psuser resetchannels &foo:1
$rd AUTH psuser pspass
$rd read
$rd CLIENT SETNAME deathrow
$rd read
$rd SUBSCRIBE foo:1
$rd read
r ACL setuser psuser resetchannels
assert_no_match
{
*deathrow*
}
[
r CLIENT LIST
]
$rd close
...
...
@@ -154,8 +157,11 @@ start_server {tags {"acl"}} {
set rd
[
redis_deferring_client
]
r ACL setuser psuser resetchannels &bar:*
$rd AUTH psuser pspass
$rd read
$rd CLIENT SETNAME deathrow
$rd read
$rd PSUBSCRIBE bar:*
$rd read
r ACL setuser psuser resetchannels
assert_no_match
{
*deathrow*
}
[
r CLIENT LIST
]
$rd close
...
...
@@ -165,9 +171,13 @@ start_server {tags {"acl"}} {
set rd
[
redis_deferring_client
]
r ACL setuser psuser resetchannels &foo:1 &bar:*
$rd AUTH psuser pspass
$rd read
$rd CLIENT SETNAME pardoned
$rd read
$rd SUBSCRIBE foo:1
$rd read
$rd PSUBSCRIBE bar:*
$rd read
r ACL setuser psuser resetchannels &foo:1 &bar:* &baz:qaz &zoo:*
assert_match
{
*pardoned*
}
[
r CLIENT LIST
]
r ACL setuser psuser allchannels
...
...
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