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
49f11f2e
Commit
49f11f2e
authored
Feb 11, 2015
by
antirez
Browse files
SPOP replication tests.
parent
616bca99
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/integration/replication-4.tcl
View file @
49f11f2e
...
...
@@ -132,5 +132,24 @@ start_server {tags {"repl"}} {
}
assert
{[
$master
dbsize
]
> 0
}
}
test
{
Replication of SPOP command -- alsoPropagate
()
API
}
{
$master del myset
set size
[
randomInt 100
]
set content
{}
for
{
set j 0
}
{
$j
< $size
}
{
incr j
}
{
lappend content
[
randomValue
]
}
$master sadd myset
{*}
$content
set count
[
randomInt 100
]
set result
[
$master
spop myset $count
]
wait_for_condition 50 100
{
[
$master
debug digest
]
eq
[
$slave
debug digest
]
}
else
{
fail
"SPOP replication inconsistency"
}
}
}
}
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