Skip to content

Commit

Permalink
testsuite: update multiqueue test for partial cancel
Browse files Browse the repository at this point in the history
Problem: partial cancel functionality changes the order of jobid3 and
jobid4 start after cancellation of jobid2 in
t1009-recovery-multiqueue.

Add an OR condition to wait on jobid3 or jobid4 to start upon
cancelling jobid2.
  • Loading branch information
milroy committed Jul 9, 2024
1 parent 86dc3b7 commit 308183a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/t1009-recovery-multiqueue.t
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ test_expect_success 'recovery: works when both modules restart (rv1)' '

test_expect_success 'recovery: a cancel leads to a job schedule (rv1)' '
flux cancel ${jobid2} &&
flux job wait-event -t 10 ${jobid4} start
(flux job wait-event -t 10 ${jobid3} start ||
flux job wait-event -t 10 ${jobid4} start)
'

test_expect_success 'recovery: cancel all jobs (rv1_nosched)' '
Expand Down

0 comments on commit 308183a

Please sign in to comment.