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 238e33c commit cbe760fCopy full SHA for cbe760f
tests/unit/test_policies.py
@@ -908,13 +908,13 @@ def test_schedule(self):
908
Test ConstantReconnectionPolicy schedule
909
"""
910
911
- delay = 2
+ configured_delay = 2
912
max_attempts = 100
913
- policy = ConstantReconnectionPolicy(delay=delay, max_attempts=max_attempts)
+ policy = ConstantReconnectionPolicy(delay=configured_delay, max_attempts=max_attempts)
914
schedule = list(policy.new_schedule())
915
assert len(schedule) == max_attempts
916
for i, delay in enumerate(schedule):
917
- assert delay == delay
+ assert delay == configured_delay
918
919
def test_schedule_negative_max_attempts(self):
920
0 commit comments