diff --git a/testsuite/expect/test37.7 b/testsuite/expect/test37.7
index cf5dbf728c89bf2c70b23adc1b28de97f1a6bbab..d2e358006a3d43d2ca290aadf3124839c6471328 100755
--- a/testsuite/expect/test37.7
+++ b/testsuite/expect/test37.7
@@ -57,7 +57,7 @@ set my_sbatch    "${fed_slurm_base}/$fedc1/bin/sbatch"
 set my_srun      "${fed_slurm_base}/$fedc1/bin/srun"
 set my_salloc    "${fed_slurm_base}/$fedc1/bin/salloc"
 set my_squeue    "${fed_slurm_base}/$fedc1/bin/squeue"
-set min_job_age  [expr {[get_min_job_age] + 65}]
+set drain_time   10
 
 set eol "\r\n"
 
@@ -403,15 +403,8 @@ sleep 10
 
 squeue ""
 
-log_info "Sleep $min_job_age seconds until system is drained"
-sleep $min_job_age
-
-scontrol jobs "No jobs in the system"
-
-scontrol fed ".+DRAIN.+ACTIVE.+"
-
-log_info "Sleep 35 more seconds until system is drained"
-sleep 35
+log_info "Sleep $drain_time seconds until system is drained"
+sleep $drain_time
 
 scontrol fed ".+DRAINED.+ACTIVE.+"
 
@@ -462,17 +455,16 @@ sbatch  1 1
 
 squeue ""
 
-scontrol jobs "JobId.+"
-
-log_info "Sleep $min_job_age seconds until system is drained"
-sleep $min_job_age
-
-scontrol jobs "No jobs in the system"
+log_info "Sleep $drain_time seconds until system is removed"
+sleep $drain_time
 
 scontrol fed ""
 
 sacctmgr_show "\\s+ACTIVE\\s+"
 
+# Once the system is drained, the controller will mark all jobs as non-requeueable.
+scontrol jobs "Requeue=0.+"
+
 set matches 0
 
 spawn $my_sacctmgr mod fed $fed_name set clusters+=$fedc1 -i