Skip to content

Commit

Permalink
t1027: add flux job wait-event
Browse files Browse the repository at this point in the history
Problem: When running t1027-mf-priority-issue376.t under valgrind, the
test that checks for contents of the eventlog fails because the test
does not wait for the job to reach the desired job state before checking
the eventlog.

Add "flux job wait-event" to the test so that the test waits for the job
to reach the desired job state before looking for certain events in the
eventlog.
  • Loading branch information
cmoussa1 committed Nov 7, 2023
1 parent 48bba78 commit d1d48d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/t1027-mf-priority-issue376.t
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ test_expect_success 'submit job for testing' '

test_expect_success 'update of duration of pending job works while at active jobs limit' '
flux update $jobid1 duration=1m &&
flux job wait-event -vt 10 $jobid1 priority &&
flux job eventlog $jobid1 \
| grep jobspec-update \
| grep duration=60
Expand Down

0 comments on commit d1d48d8

Please sign in to comment.