Skip to content

Commit 227ae46

Browse files
committed
feat: changes to test windows container
1 parent 8d518f6 commit 227ae46

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/ansys/dpf/core/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def start_local_server(
164164
load_operators=True,
165165
use_docker_by_default=True,
166166
docker_config=RUNNING_DOCKER,
167-
timeout=20.0,
167+
timeout=100.0,
168168
config=None,
169169
use_pypim_by_default=True,
170170
context=None,
@@ -310,7 +310,7 @@ def connect_to_server(
310310
ip=LOCALHOST,
311311
port=DPF_DEFAULT_PORT,
312312
as_global=True,
313-
timeout=10.0,
313+
timeout=100.0,
314314
config=None,
315315
context=None,
316316
):

src/ansys/dpf/core/server_factory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ def __init__(
9191
from ansys.dpf.core import LOCAL_DOWNLOADED_EXAMPLES_PATH
9292

9393
if mounted_volumes is None:
94-
mounted_volumes = {LOCAL_DOWNLOADED_EXAMPLES_PATH: "/tmp/downloaded_examples"}
94+
# mounted_volumes = {LOCAL_DOWNLOADED_EXAMPLES_PATH: "/tmp/downloaded_examples"}
95+
mounted_volumes = {LOCAL_DOWNLOADED_EXAMPLES_PATH: "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\downloaded_examples"}
9596

9697
self._use_docker = use_docker
9798
self._docker_name = docker_name

src/ansys/dpf/core/server_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def read_stdout():
222222

223223

224224
def launch_dpf(
225-
ansys_path, ip=LOCALHOST, port=DPF_DEFAULT_PORT, timeout=10, context: ServerContext = None
225+
ansys_path, ip=LOCALHOST, port=DPF_DEFAULT_PORT, timeout=100, context: ServerContext = None
226226
):
227227
"""Launch Ansys DPF.
228228
@@ -258,7 +258,7 @@ def launch_dpf_on_docker(
258258
ansys_path=None,
259259
ip=LOCALHOST,
260260
port=DPF_DEFAULT_PORT,
261-
timeout=10.0,
261+
timeout=100.0,
262262
):
263263
"""Launch Ansys DPF.
264264
@@ -791,7 +791,7 @@ def __init__(
791791
ansys_path: Union[str, None] = None,
792792
ip: str = LOCALHOST,
793793
port: str = DPF_DEFAULT_PORT,
794-
timeout: float = 10.0,
794+
timeout: float = 100.0,
795795
as_global: bool = True,
796796
load_operators: bool = True,
797797
launch_server: bool = True,
@@ -1222,7 +1222,7 @@ def __init__(
12221222
ansys_path: Union[str, None] = None,
12231223
ip: str = LOCALHOST,
12241224
port: str = DPF_DEFAULT_PORT,
1225-
timeout: float = 5.0,
1225+
timeout: float = 100.0,
12261226
as_global: bool = True,
12271227
load_operators: bool = True,
12281228
launch_server: bool = True,

0 commit comments

Comments
 (0)