We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0cdf8 commit 4341a48Copy full SHA for 4341a48
tests/dragonfly/replication_test.py
@@ -1246,7 +1246,10 @@ async def block_during_takeover():
1246
"Add a blocking command during takeover to make sure it doesn't block it."
1247
start = time.time()
1248
# The command should just be canceled
1249
- assert await c_blocking.execute_command("BLPOP BLOCKING_KEY1 BLOCKING_KEY2 100") is None
+ try:
1250
+ assert await c_blocking.execute_command("BLPOP BLOCKING_KEY1 BLOCKING_KEY2 100") is None
1251
+ except (redis.exceptions.ConnectionError, redis.exceptions.ResponseError) as e:
1252
+ break
1253
# And it should happen in reasonable amount of time.
1254
assert time.time() - start < 10
1255
0 commit comments