Skip to content

Commit f12c199

Browse files
Merge master into issues/5114-filesize-sniffing
2 parents f955721 + 47ac7bf commit f12c199

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/toil/test/cwl/cwlTest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,12 @@ def test_slurm_node_memory(self) -> None:
526526
log.debug("Workflow output: %s", out)
527527
memory_string = out["memory"]
528528
log.debug("Observed memory: %s", memory_string)
529-
result = int(memory_string)
529+
# If there's no memory limit enforced, Slurm will return "unlimited".
530+
# Set result to something sensible.
531+
if memory_string.strip() == "unlimited":
532+
result = 4 * 1024 * 1024
533+
else:
534+
result = int(memory_string)
530535
# We should see more than the CWL default or the Toil default, assuming Slurm nodes of reasonable size (3 GiB).
531536
self.assertGreater(result, 3 * 1024 * 1024)
532537

0 commit comments

Comments
 (0)