Skip to content

Commit b4caa97

Browse files
committed
blacken
1 parent 13e72f1 commit b4caa97

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

torchft/lighthouse_test.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from torchft import Manager, ProcessGroupGloo
55
import time
66

7+
78
class TestLighthouse(TestCase):
89
def test_join_timeout_behavior(self) -> None:
910
"""Test that join_timeout_ms affects joining behavior"""
@@ -14,7 +15,7 @@ def test_join_timeout_behavior(self) -> None:
1415
min_replicas=1,
1516
join_timeout_ms=100,
1617
)
17-
18+
1819
# Create a manager that tries to join
1920
try:
2021
store = dist.TCPStore(
@@ -37,7 +38,7 @@ def test_join_timeout_behavior(self) -> None:
3738
use_async_quorum=False,
3839
lighthouse_addr=lighthouse.address(),
3940
)
40-
41+
4142
start_time = time.time()
4243
manager.start_quorum()
4344
time_taken = time.time() - start_time
@@ -46,15 +47,15 @@ def test_join_timeout_behavior(self) -> None:
4647
finally:
4748
# Cleanup
4849
lighthouse.shutdown()
49-
if 'manager' in locals():
50+
if "manager" in locals():
5051
manager.shutdown()
51-
52+
5253
lighthouse = Lighthouse(
5354
bind="[::]:0",
5455
min_replicas=1,
5556
join_timeout_ms=400,
5657
)
57-
58+
5859
# Create a manager that tries to join
5960
try:
6061
store = dist.TCPStore(
@@ -77,7 +78,7 @@ def test_join_timeout_behavior(self) -> None:
7778
use_async_quorum=False,
7879
lighthouse_addr=lighthouse.address(),
7980
)
80-
81+
8182
start_time = time.time()
8283
manager.start_quorum()
8384
time_taken = time.time() - start_time
@@ -86,6 +87,5 @@ def test_join_timeout_behavior(self) -> None:
8687
finally:
8788
# Cleanup
8889
lighthouse.shutdown()
89-
if 'manager' in locals():
90+
if "manager" in locals():
9091
manager.shutdown()
91-

0 commit comments

Comments
 (0)