diff options
author | antirez <antirez@gmail.com> | 2018-05-15 17:43:04 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-05-15 17:43:41 +0200 |
commit | e344aa4a6dbffae551a8c3c344c0e9237fff6107 (patch) | |
tree | 78a509b4e2d377f513caee6f91c85be3f860b636 /tests/helpers | |
parent | 8327ccef0e2775b243a5d22dfcf1e45c08ddf47e (diff) | |
download | redis-e344aa4a6dbffae551a8c3c344c0e9237fff6107.tar.gz |
Test: fix blocking lists/zsets replication test.
By verifying that it was able to find a regression, and fixing it
accordingly.
Diffstat (limited to 'tests/helpers')
-rw-r--r-- | tests/helpers/bg_block_op.tcl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/helpers/bg_block_op.tcl b/tests/helpers/bg_block_op.tcl index 6553a9abd..238d3874f 100644 --- a/tests/helpers/bg_block_op.tcl +++ b/tests/helpers/bg_block_op.tcl @@ -34,12 +34,13 @@ proc bg_block_op {host port db ops} { # Zset side set k zset_[randomInt 10] set k2 zset_[randomInt 10] + set v1 [randomValue] + set v2 [randomValue] randpath { $r zadd $k [randomInt 10000] $v } { - # Duplicate to balance the probability to push data - $r zadd $k [randomInt 10000] $v + $r zadd $k [randomInt 10000] $v [randomInt 10000] $v2 } { $r bzpopmin $k 2 } { |