Skip to content

Commit 3efeed0

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 998732c commit 3efeed0

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
@@ -13,7 +13,7 @@ inactive_count() {
1313
if test $how = "job-manager"; then
1414
flux module stats --parse=inactive_jobs job-manager
1515
elif test $how = "job-list"; then
16-
flux jobs --no-header --filter=inactive|wc -l
16+
flux module stats -p jobs.inactive job-list
1717
elif test $how = "job-list-stats"; then
1818
flux job stats | jq .job_states.inactive
1919
else

0 commit comments

Comments
 (0)