Skip to content

Commit bc91978

Browse files
author
Maksym Shtembuliak
committed
test: isolate boot listeners across parallel HA lanes
1 parent 8465ad0 commit bc91978

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎tests_ha/test_ha_discovery_inbound_lifecycle.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ async def test_discovery_inbound_full_ha_lifecycle(
129129
"server_ip": SYNTHETIC_SERVER_IP,
130130
"collector_ip": "192.0.2.55",
131131
"collector_pn": "E5000099990003",
132-
"tcp_port": 8899,
132+
# This boot runtime also owns a real listener. Do not collide with
133+
# another HA compatibility lane running on the same workstation.
134+
"tcp_port": _free_tcp_port(),
133135
"udp_port": 58899,
134136
"driver_hint": "auto",
135137
},

‎tests_ha/test_ha_silent_callback_lifecycle.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ async def test_active_scan_silent_callback_full_ha_lifecycle(
123123
"server_ip": SYNTHETIC_SERVER_IP,
124124
"collector_ip": "192.0.2.55",
125125
"collector_pn": "E5000099990003",
126-
"tcp_port": 8899,
126+
# Independent of the flow's listener and of parallel HA test lanes.
127+
"tcp_port": _free_tcp_port(),
127128
"udp_port": 58899,
128129
"driver_hint": "auto",
129130
},

0 commit comments

Comments
 (0)