Skip to content

Commit eea1c7c

Browse files
committed
Rename "task_manager" variables to "target_manager"
1 parent e0f3729 commit eea1c7c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/mock_vws/test_docker.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ def test_build_and_run(
204204
target_manager_port_attrs = target_manager_container.attrs[
205205
"NetworkSettings"
206206
]["Ports"]
207-
task_manager_host_ip = target_manager_port_attrs["5000/tcp"][0]["HostIp"]
208-
task_manager_host_port = target_manager_port_attrs["5000/tcp"][0][
207+
target_manager_host_ip = target_manager_port_attrs["5000/tcp"][0]["HostIp"]
208+
target_manager_host_port = target_manager_port_attrs["5000/tcp"][0][
209209
"HostPort"
210210
]
211211

@@ -221,15 +221,15 @@ def test_build_and_run(
221221

222222
base_vws_url = f"http://{vws_host_ip}:{vws_host_port}"
223223
base_vwq_url = f"http://{vwq_host_ip}:{vwq_host_port}"
224-
base_task_manager_url = (
225-
f"http://{task_manager_host_ip}:{task_manager_host_port}"
224+
base_target_manager_url = (
225+
f"http://{target_manager_host_ip}:{target_manager_host_port}"
226226
)
227227

228-
for base_url in (base_vws_url, base_vwq_url, base_task_manager_url):
228+
for base_url in (base_vws_url, base_vwq_url, base_target_manager_url):
229229
wait_for_flask_app_to_start(base_url=base_url)
230230

231231
response = requests.post(
232-
url=f"{base_task_manager_url}/databases",
232+
url=f"{base_target_manager_url}/databases",
233233
json=database.to_dict(),
234234
timeout=30,
235235
)

0 commit comments

Comments
 (0)