From 48bba783fe563b9e6a9322847a8a4b723481d72b Mon Sep 17 00:00:00 2001 From: cmoussa1 Date: Tue, 19 Sep 2023 14:22:40 -0700 Subject: [PATCH] t1019: change order of job cancellations Problem: Running t1019-mf-priority-info-fetch.t under valgrind causes the third submitted job to enter an alloc event by the time the first two are canceled, which we don't want for the purpose of the tests because we are checking for certain cur_run_jobs and cur_active_jobs values when we query the plugin's internal map. Change the order of the job cancellations to cancel the last submitted job first so that it never enters the alloc event while the first two are in the process of being cancelled. --- t/t1019-mf-priority-info-fetch.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/t1019-mf-priority-info-fetch.t b/t/t1019-mf-priority-info-fetch.t index f9aa31ff..1e793d1a 100755 --- a/t/t1019-mf-priority-info-fetch.t +++ b/t/t1019-mf-priority-info-fetch.t @@ -73,10 +73,10 @@ test_expect_success HAVE_JQ 'fetch plugin state and make sure that jobs are refl jq -e ".mf_priority_map[0].banks[0].cur_active_jobs == 3"