Skip to content

Commit 083f800

Browse files
authored
Updated host version for consumption tests (#1062)
1 parent b1085b5 commit 083f800

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

azure_functions_worker/testutils_lc.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,6 @@ def _find_latest_mesh_image(cls,
139139
cls._mesh_images[host_major] = image_tag
140140
return image_tag
141141

142-
def _delete_init_file_from_azure_dir(self):
143-
init_file_path = f"/azure-functions-host/workers/python/" \
144-
f"{self._py_version}/LINUX/X64/azure/__init__.py"
145-
run_rm_cmd = [self._docker_cmd, "exec", self._uuid]
146-
run_rm_cmd.extend(["rm", init_file_path])
147-
148-
subprocess.run(args=run_rm_cmd,
149-
stdout=subprocess.PIPE,
150-
stderr=subprocess.PIPE)
151-
152142
@staticmethod
153143
def _download_azure_functions() -> str:
154144
with urlopen(_FUNC_GITHUB_ZIP) as zipresp:
@@ -201,9 +191,6 @@ def spawn_container(self,
201191
f' {image} with uuid {self._uuid}.'
202192
f' stderr: {run_process.stderr}')
203193

204-
# Remove once worker version 4.0.0 is released
205-
self._delete_init_file_from_azure_dir()
206-
207194
# Wait for three seconds for the port to expose
208195
time.sleep(3)
209196

tests/endtoend/test_linux_consumption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
)
1212
from azure_functions_worker.utils.common import is_python_version
1313

14-
_DEFAULT_HOST_VERSION = "3"
14+
_DEFAULT_HOST_VERSION = "4"
1515

1616

1717
@skipIf(is_python_version('3.10'),

0 commit comments

Comments
 (0)