mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 08:00:49 +00:00
SPOP replication tests.
This commit is contained in:
parent
dffbbb5a78
commit
a1d9ec0d44
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user