summaryrefslogtreecommitdiff
path: root/tests/helpers
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-05-15 17:43:04 +0200
committerantirez <antirez@gmail.com>2018-05-15 17:43:41 +0200
commite344aa4a6dbffae551a8c3c344c0e9237fff6107 (patch)
tree78a509b4e2d377f513caee6f91c85be3f860b636 /tests/helpers
parent8327ccef0e2775b243a5d22dfcf1e45c08ddf47e (diff)
downloadredis-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.tcl5
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
} {