Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
09843df1
"vscode:/vscode.git/clone" did not exist on "01f36192c8be1ed12a5efc272bbbd1a20acd3e1e"
Commit
09843df1
authored
May 30, 2011
by
antirez
Browse files
test for the BRPOPLPUSH issue 561 related issues
parent
4f8cf6a2
Changes
2
Show whitespace changes
Inline
Side-by-side
tests/integration/replication.tcl
View file @
09843df1
...
@@ -6,6 +6,24 @@ start_server {tags {"repl"}} {
...
@@ -6,6 +6,24 @@ start_server {tags {"repl"}} {
s -1 role
s -1 role
}
{
slave
}
}
{
slave
}
test
{
BRPOPLPUSH replication, when blocking against empty list
}
{
set rd
[
redis_deferring_client
]
$rd brpoplpush a b 5
r lpush a foo
after 1000
assert_equal
[
r debug digest
]
[
r -1 debug digest
]
}
test
{
BRPOPLPUSH replication, list exists
}
{
set rd
[
redis_deferring_client
]
r lpush c 1
r lpush c 2
r lpush c 3
$rd brpoplpush c d 5
after 1000
assert_equal
[
r debug digest
]
[
r -1 debug digest
]
}
test
{
MASTER and SLAVE dataset should be identical after complex ops
}
{
test
{
MASTER and SLAVE dataset should be identical after complex ops
}
{
createComplexDataset r 10000
createComplexDataset r 10000
after 500
after 500
...
...
tests/unit/type/list.tcl
View file @
09843df1
...
@@ -278,6 +278,14 @@ start_server {
...
@@ -278,6 +278,14 @@ start_server {
r exec
r exec
}
{
foo bar
{}
{}
{
bar foo
}}
}
{
foo bar
{}
{}
{
bar foo
}}
test
{
BRPOPLPUSH timeout
}
{
set rd
[
redis_deferring_client
]
$rd brpoplpush foo_list bar_list 1
after 2000
$rd read
}
{}
foreach
{
pop
}
{
BLPOP BRPOP
}
{
foreach
{
pop
}
{
BLPOP BRPOP
}
{
test
"
$pop:
with single empty list argument"
{
test
"
$pop:
with single empty list argument"
{
set rd
[
redis_deferring_client
]
set rd
[
redis_deferring_client
]
...
...
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