Skip to content

Commit

Permalink
Retry migration test on ConnectionError
Browse files Browse the repository at this point in the history
  • Loading branch information
tezc committed Jan 18, 2023
1 parent 5e0fb10 commit 8da3625
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/test_migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def migrate_slots(cluster, slots):
if cursor == 0:
break

except (redis.ResponseError, redis.TimeoutError) as e:
except (redis.ConnectionError, redis.ResponseError,
redis.TimeoutError) as e:
logging.info('raft.scan command failed with error: ' + str(e))

max_retries -= 1
Expand Down

0 comments on commit 8da3625

Please sign in to comment.