Skip to content

Commit de10b09

Browse files
committed
Fix syntax errors
1 parent f150389 commit de10b09

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

chaski/utils/auto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
import asyncio
1414
from string import ascii_uppercase
1515

16-
PORT = 65440
16+
# PORT = 65440
17+
PORT = 0
1718

1819

1920
async def create_nodes(

test/test_subscription.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class TestSubscriptions(unittest.IsolatedAsyncioTestCase):
3535

3636
host = "127.0.0.1"
3737

38-
def tearDown(self):
39-
terminate_connections.main()
38+
# def tearDown(self):
39+
# terminate_connections.main()
4040

4141
async def _close_nodes(self, nodes: list[ChaskiNode]):
4242
"""
@@ -128,7 +128,7 @@ async def test_single_subscription_no_disconnect(self):
128128
AssertionError
129129
Raised if the nodes do not pair correctly according to their subscription topics.
130130
"""
131-
nodes = await create_nodes(["A", "B", "C", "A", "B", "C"], port=65440)
131+
nodes = await create_nodes(["A", "B", "C", "A", "B", "C"])
132132
for node in nodes[1:]:
133133
await node._connect_to_peer(nodes[0])
134134

@@ -157,9 +157,7 @@ async def test_single_subscription_no_disconnect(self):
157157

158158
async def test_single_subscription_with_disconnect(self):
159159
""""""
160-
nodes = await create_nodes(
161-
["A", "B", "C", ["A", "C"], ["B", "A"], "C"], port=65450
162-
)
160+
nodes = await create_nodes(["A", "B", "C", ["A", "C"], ["B", "A"], "C"])
163161
for node in nodes[1:]:
164162
await node._connect_to_peer(nodes[0])
165163

0 commit comments

Comments
 (0)