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
38de9362
Commit
38de9362
authored
Apr 15, 2011
by
antirez
Browse files
Revert "tests for variadic list push"
This reverts commit
1b905277
. Moving all the new stuff in 2.4 branch.
parent
76009949
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/type/list.tcl
View file @
38de9362
...
...
@@ -55,13 +55,6 @@ start_server {
assert_equal $largevalue
(
linkedlist
)
[
r lindex mylist2 2
]
}
test
{
Variadic RPUSH/LPUSH
}
{
r del mylist
assert_equal 4
[
r lpush mylist a b c d
]
assert_equal 8
[
r rpush mylist 0 1 2 3
]
assert_equal
{
d c b a 0 1 2 3
}
[
r lrange mylist 0 -1
]
}
test
{
DEL a list - ziplist
}
{
assert_equal 1
[
r del myziplist2
]
assert_equal 0
[
r exists myziplist2
]
...
...
@@ -149,15 +142,6 @@ start_server {
}
}
test
"BLPOP with variadic LPUSH"
{
set rd
[
redis_deferring_client
]
r del blist target
$rd blpop blist 0
assert_equal 2
[
r lpush blist foo bar
]
assert_equal
{
blist foo
}
[
$rd
read
]
assert_equal bar
[
lindex
[
r lrange blist 0 -1
]
0
]
}
test
"BRPOPLPUSH with zero timeout should block indefinitely"
{
set rd
[
redis_deferring_client
]
r del blist target
...
...
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