Skip to content

Commit b2185dc

Browse files
committed
testsuite: update purge tests for job-list changes
Problem: The job-list module now stores / recovers inactive job data from its internal database. Tests that assume job-list only stores jobs in memory do not account for this, leading to errors. Solution: Update tests to read the job-list module stats instead of using `flux jobs`. This gathers internal data to the job-list module, which allows purge tests to pass.
1 parent a8ce53c commit b2185dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t2809-job-purge.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inactive_count() {
1515
if test $how = "job-manager"; then
1616
flux module stats --parse=inactive_jobs job-manager
1717
elif test $how = "job-list"; then
18-
flux jobs --suppress-header --filter=inactive|wc -l
18+
flux module stats -p jobs.inactive job-list
1919
elif test $how = "job-list-stats"; then
2020
flux job stats | jq .job_states.inactive
2121
else

0 commit comments

Comments
 (0)