From 8b0a3a7c77bd41bedd90a8113af0db1a697ff109 Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Wed, 5 Mar 2014 08:59:23 -0800 Subject: [PATCH] Tweak test timing In test15.17, an salloc spawns an sbatch within that same job allocation then exits. This results in a race condition which can cause the terminate job RPC from slurmctld to slurmd to briefly hang and mark the node non-responsive, causing later tests that may need the node to fail (timeout waiting for job allocation). A sleep is added to the salloc here to give the batch job a chance to begin and clean up the job allocation quickly. --- testsuite/expect/test15.17 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testsuite/expect/test15.17 b/testsuite/expect/test15.17 index 67759cc2aeb..0d27103473a 100755 --- a/testsuite/expect/test15.17 +++ b/testsuite/expect/test15.17 @@ -74,6 +74,11 @@ expect { exp_continue } -re "Submitted batch job ($number)" { +# +# Sleep gives time for the batch job to start and prevents a race +# condition that can briefly leave node in a not responding state +# + sleep 1 set job_id_2 $expect_out(1,string) send "exit \r" exp_continue -- GitLab