Skip to content

Commit

Permalink
testsuite: cover stuck validator at module unload
Browse files Browse the repository at this point in the history
Problem: there is no test coverage for a validator that refuses
to be shut down.

Add a test.
  • Loading branch information
garlick committed Nov 14, 2024
1 parent 266f510 commit 95da25e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/t2113-job-ingest-pipeline.t
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,14 @@ test_expect_success 'job was validated but not frobbed' '
test_cmp frob3.count frob4.count &&
test_must_fail test_cmp val3.count val4.count
'
test_expect_success 'stop validator 0' '
valpid=$(jq -r ".pipeline.validator.pids[0]" <stats8.out) &&
kill -STOP $valpid
'
test_expect_success 'remove job-ingest to trigger cleanup' '
flux setattr log-stderr-level 7 &&
flux module remove job-ingest &&
flux setattr log-stderr-level 1
'

test_done

0 comments on commit 95da25e

Please sign in to comment.