Skip to content

Commit 7c8e3d6

Browse files
committed
fix: accounting for changed suffix
1 parent 96551c6 commit 7c8e3d6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/tests.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def get_executor(self) -> str:
1919
return "slurm"
2020

2121
def get_executor_settings(self) -> Optional[ExecutorSettingsBase]:
22-
return ExecutorSettings(init_seconds_before_status_checks=1)
22+
return ExecutorSettings(init_seconds_before_status_checks=2,
23+
seconds_between_status_checks=5,
24+
max_status_checks_per_second=1)
2325

2426

2527
class TestEfficiencyReport(snakemake.common.tests.TestWorkflowsLocalStorageBase):
@@ -38,13 +40,13 @@ def test_simple_workflow(self, tmp_path):
3840

3941
# The efficiency report is created in the
4042
# current working directory
41-
pattern = re.compile(r"efficiency_report_[\w-]+\.log")
43+
pattern = re.compile(r"efficiency_report_[\w-]+\.csv")
4244
report_found = False
4345

4446
# Check both cwd and the tmp_path for the report file -
4547
# the CI seems lost.
4648
for search_dir in [Path.cwd(), tmp_path]:
47-
for filepath in search_dir.glob("efficiency_report_*.log"):
49+
for filepath in search_dir.glob("efficiency_report_*.csv"):
4850
if pattern.match(filepath.name):
4951
report_found = True
5052
# Verify it's not empty

0 commit comments

Comments
 (0)