Skip to content

Commit 062ac32

Browse files
fix: ram units (#3730)
* fix: ram units * chore: adding changelog file 3730.fixed.md [dependabot-skip] --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 4d364dd commit 062ac32

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

doc/changelog.d/3730.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: ram units

tests/test_launcher/test_tools.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def test_generate_mapdl_launch_command_windows():
198198
jobname = "myjob"
199199
nproc = 10
200200
port = 1000
201-
ram = 2
201+
ram = 2024
202202
additional_switches = "-my_add=switch"
203203

204204
cmd = generate_mapdl_launch_command(
@@ -218,7 +218,7 @@ def test_generate_mapdl_launch_command_windows():
218218
assert "-port" in cmd
219219
assert f"{port}" in cmd
220220
assert "-m" in cmd
221-
assert f"{ram*1024}" in cmd
221+
assert f"{ram}" in cmd
222222
assert "-np" in cmd
223223
assert f"{nproc}" in cmd
224224
assert "-grpc" in cmd
@@ -233,7 +233,7 @@ def test_generate_mapdl_launch_command_windows():
233233
assert f"{exec_file}" in cmd
234234
assert f" -j {jobname} " in cmd
235235
assert f" -port {port} " in cmd
236-
assert f" -m {ram*1024} " in cmd
236+
assert f" -m {ram} " in cmd
237237
assert f" -np {nproc} " in cmd
238238
assert " -grpc" in cmd
239239
assert f" {additional_switches} " in cmd
@@ -249,7 +249,7 @@ def test_generate_mapdl_launch_command_linux():
249249
jobname = "myjob"
250250
nproc = 10
251251
port = 1000
252-
ram = 2
252+
ram = 2024
253253
additional_switches = "-my_add=switch"
254254

255255
cmd = generate_mapdl_launch_command(
@@ -271,7 +271,7 @@ def test_generate_mapdl_launch_command_linux():
271271
assert "-port" in cmd
272272
assert f"{port}" in cmd
273273
assert "-m" in cmd
274-
assert f"{ram*1024}" in cmd
274+
assert f"{ram}" in cmd
275275
assert "-np" in cmd
276276
assert f"{nproc}" in cmd
277277
assert "-grpc" in cmd
@@ -287,7 +287,7 @@ def test_generate_mapdl_launch_command_linux():
287287
assert f"{exec_file} " in cmd
288288
assert f" -j {jobname} " in cmd
289289
assert f" -port {port} " in cmd
290-
assert f" -m {ram*1024} " in cmd
290+
assert f" -m {ram} " in cmd
291291
assert f" -np {nproc} " in cmd
292292
assert " -grpc" in cmd
293293
assert f" {additional_switches} " in cmd

0 commit comments

Comments
 (0)