We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f955721 + 47ac7bf commit f12c199Copy full SHA for f12c199
src/toil/test/cwl/cwlTest.py
@@ -526,7 +526,12 @@ def test_slurm_node_memory(self) -> None:
526
log.debug("Workflow output: %s", out)
527
memory_string = out["memory"]
528
log.debug("Observed memory: %s", memory_string)
529
- result = int(memory_string)
+ # 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)
535
# We should see more than the CWL default or the Toil default, assuming Slurm nodes of reasonable size (3 GiB).
536
self.assertGreater(result, 3 * 1024 * 1024)
537
0 commit comments