diff --git a/testsuite/expect/test17.19 b/testsuite/expect/test17.19
index 5165ff674ddf12a5549ecef15365886ee0df9152..c937fe252c130e740c5e96d8177ace965d4ec7e9 100755
--- a/testsuite/expect/test17.19
+++ b/testsuite/expect/test17.19
@@ -60,9 +60,9 @@ if { [test_bluegene] } {
 	}
 }
 
-set srun_pid [spawn $salloc -N$node_cnt -v -t1 $bin_bash]
+set salloc_pid [spawn $salloc -N$node_cnt -v -t1 $bin_bash]
 expect {
-	-re "jobid ($number):" {
+	-re "Granted job allocation ($number)" {
 		set job_id_1 $expect_out(1,string)
 		send "$sbatch --jobid=$job_id_1 -o none -e none $file_in \n"
 		exp_continue
@@ -79,7 +79,7 @@ expect {
 	}
 	timeout {
 		send_user "\nFAILURE: srun not responding\n"
-		slow_kill $srun_pid
+		slow_kill $salloc_pid
 		set exit_code 1
 	}
 	eof {