Skip to content

Commit 47235e0

Browse files
authored
ci: use correct container engine for test_tesseract_serve_interop (#328)
Currently, the test uses a literal `docker` command to setup the network. If an alternative container (such as `podman` is used) it doesn't seem to be guaranteed that it can see this same network. (Led to failing tests in #324 when trying to run without setting `DOCKER_HOST`)
1 parent e0ed0d0 commit 47235e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/endtoend_tests/test_endtoend.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from tesseract_core.sdk.cli import AVAILABLE_RECIPES, app
2222
from tesseract_core.sdk.config import get_config
23+
from tesseract_core.sdk.docker_client import _get_docker_executable
2324

2425

2526
@pytest.fixture(scope="module")
@@ -625,9 +626,11 @@ def test_tesseract_serve_interop(
625626
):
626627
cli_runner = CliRunner(mix_stderr=False)
627628

629+
docker = _get_docker_executable()
630+
628631
# Network create using subprocess
629632
subprocess.run(
630-
["docker", "network", "create", dummy_network_name],
633+
[*docker, "network", "create", dummy_network_name],
631634
check=True,
632635
)
633636
docker_cleanup["networks"].append(dummy_network_name)

0 commit comments

Comments
 (0)