diff --git a/testsuite/expect/test3.11 b/testsuite/expect/test3.11
index 69fae5f13f8ae21feb1d4742448e0132417bb348..0c14a38d18d21fef65a16c29faaf9be22b1b5678 100755
--- a/testsuite/expect/test3.11
+++ b/testsuite/expect/test3.11
@@ -67,7 +67,7 @@ proc create_res { res_params failure_expected } {
 		-re "Reservation created: ($alpha_numeric_under)" {
 			set res_name $expect_out(1,string)
 		}
-		-re "slurm_update error: Invalid user" {
+		-re "Error creating the reservation: Invalid user" {
 			send_user "\nWARNING: user not authorized "
 			send_user "to create reservation\n"
 			set ret_code 1
diff --git a/testsuite/expect/test3.5 b/testsuite/expect/test3.5
index ba13943e9c4d9521cd79ed899a619cf3769065ff..b7a8917597399790caaa9ff861e7be45b3b85847 100755
--- a/testsuite/expect/test3.5
+++ b/testsuite/expect/test3.5
@@ -110,7 +110,7 @@ if {[string compare $def_node ""] == 0} {
 #
 spawn $scontrol create PartitionName=$part_name Nodes=$def_node
 expect {
-	-re "slurm_update error: Invalid user" {
+	-re "Error creating the partition: Invalid user" {
 		send_user "\nWARNING: user not authorized to create partition\n"
 		exit $exit_code
 		exp_continue