Skip to content

Commit 84d550a

Browse files
committed
tests: also check disk_read and disk_write for live stats (#366)
At least with jobacct_gather/linux, they should always show something.
1 parent 52336d0 commit 84d550a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/test_job.py

+4
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,16 @@ def test_load_stats(submit_job):
184184
assert isinstance(job.stats, JobStatistics)
185185
assert job.stats.elapsed_cpu_time > 0
186186
assert job.stats.resident_memory > 0
187+
assert job.stats.disk_read > 0
188+
assert job.stats.disk_write > 0
187189

188190
for step in job.steps.values():
189191
assert step.stats
190192
assert step.state == "RUNNING"
191193
assert isinstance(step.stats, JobStepStatistics)
192194
assert step.stats.avg_resident_memory > 0
195+
assert step.stats.avg_disk_read > 0
196+
assert step.stats.avg_disk_write > 0
193197
assert step.stats.elapsed_cpu_time > 0
194198

195199

0 commit comments

Comments
 (0)