From d1d48d886579d7a5f302b9e2d943b9339718ebac Mon Sep 17 00:00:00 2001 From: cmoussa1 Date: Tue, 19 Sep 2023 14:26:46 -0700 Subject: [PATCH] t1027: add flux job wait-event 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. --- t/t1027-mf-priority-issue376.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/t1027-mf-priority-issue376.t b/t/t1027-mf-priority-issue376.t index 1b407aa5..4c617902 100755 --- a/t/t1027-mf-priority-issue376.t +++ b/t/t1027-mf-priority-issue376.t @@ -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