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
0717e3aa
Commit
0717e3aa
authored
Jul 11, 2011
by
antirez
Browse files
fix a test timing issue when running the test over valgrind
parent
6b91a11e
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/unit/other.tcl
View file @
0717e3aa
...
@@ -247,6 +247,7 @@ start_server {tags {"other"}} {
...
@@ -247,6 +247,7 @@ start_server {tags {"other"}} {
}
{
0 0
}
}
{
0 0
}
test
{
Perform a final SAVE to leave a clean DB on disk
}
{
test
{
Perform a final SAVE to leave a clean DB on disk
}
{
waitForBgsave r
r save
r save
}
{
OK
}
}
{
OK
}
}
}
tests/unit/type/list.tcl
View file @
0717e3aa
...
@@ -148,8 +148,11 @@ start_server {
...
@@ -148,8 +148,11 @@ start_server {
test
"BLPOP with variadic LPUSH"
{
test
"BLPOP with variadic LPUSH"
{
set rd
[
redis_deferring_client
]
set rd
[
redis_deferring_client
]
r del blist target
r del blist target
if
{
$::valgrind
}
{
after 100
}
$rd blpop blist 0
$rd blpop blist 0
if
{
$::valgrind
}
{
after 100
}
assert_equal 2
[
r lpush blist foo bar
]
assert_equal 2
[
r lpush blist foo bar
]
if
{
$::valgrind
}
{
after 100
}
assert_equal
{
blist foo
}
[
$rd
read
]
assert_equal
{
blist foo
}
[
$rd
read
]
assert_equal bar
[
lindex
[
r lrange blist 0 -1
]
0
]
assert_equal bar
[
lindex
[
r lrange blist 0 -1
]
0
]
}
}
...
...
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