Skip to content

Commit dae0ff1

Browse files
committed
Fixing unit test after applying correct expected value for default timeout.
1 parent 4c2c85a commit dae0ff1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redis/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ def _update_maintenance_events_configs_for_connections(
18321832
def _update_connection_kwargs_for_maintenance_events(self):
18331833
"""Store original connection parameters for maintenance events."""
18341834
if self.connection_kwargs.get("orig_host_address", None) is None:
1835-
# if orig_host_address is None it means we haven't
1835+
# If orig_host_address is None it means we haven't
18361836
# configured the original values yet
18371837
self.connection_kwargs.update(
18381838
{

tests/test_maintenance_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def test_init_defaults(self):
381381
config = MaintenanceEventsConfig()
382382
assert config.enabled is True
383383
assert config.proactive_reconnect is True
384-
assert config.relax_timeout == 20
384+
assert config.relax_timeout == 10
385385

386386
def test_init_custom_values(self):
387387
"""Test MaintenanceEventsConfig initialization with custom values."""

0 commit comments

Comments
 (0)