File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,47 +86,6 @@ async def test_ping(self) -> None:
8686 "Latencies of the two edges should be equal after resetting" ,
8787 )
8888
89- @pytest .mark .asyncio
90- async def test_address (self ) -> None :
91- """
92- Test the correctness of node addresses.
93-
94- This test method verifies that the addresses of node edges are correctly set up. The following steps are performed:
95-
96- 1. Create two ChaskiNodes.
97- 2. Connect nodes[1] to nodes[0].
98- 3. Assert that the address of the first edge of node[0] matches the provided IP.
99- 4. Assert that the local address of the first edge of node[0] is set to port 65440.
100- 5. Close the nodes.
101-
102- Assertions
103- ----------
104- AssertionError
105- If the addresses do not match the expected values.
106-
107- Notes
108- -----
109- This test ensures that the nodes' addresses are correctly set and can be retrieved accurately.
110- """
111-
112- port = 65499
113-
114- self .nodes = await create_nodes (2 , self .ip , port = port )
115- await self .nodes [1 ].connect (self .nodes [0 ])
116- await asyncio .sleep (0.3 )
117-
118- self .assertEqual (
119- self .nodes [0 ].edges [0 ].address [0 ],
120- self .ip ,
121- "The address of the edge should match the provided IP" ,
122- )
123-
124- self .assertEqual (
125- self .nodes [0 ].edges [0 ].local_address [1 ],
126- port ,
127- f"Local address of the edge should be { port } " ,
128- )
129-
13089 @pytest .mark .asyncio
13190 async def test_message_ttl (self ) -> None :
13291 """
You can’t perform that action at this time.
0 commit comments