diff --git a/core/modules/rest/src/Tests/UpdateTest.php b/core/modules/rest/src/Tests/UpdateTest.php
index 287c2df..14abd9a 100644
--- a/core/modules/rest/src/Tests/UpdateTest.php
+++ b/core/modules/rest/src/Tests/UpdateTest.php
@@ -187,7 +187,7 @@ public function testPatchUpdate() {
$response = $this->httpRequest($entity->toUrl()->setRouteParameter('_format', $this->defaultFormat), 'PATCH', $invalid_serialized, $this->defaultMimeType);
$this->assertResponse(422);
$error = Json::decode($response);
- $this->assertEqual($error['message'], "Unprocessable Entity: validation failed.\nuuid.0.value: UUID: may not be longer than 128 characters.\n");
+ $this->assertEqual($error['message'], "Unprocessable Entity: validation failed.\nuuid: The field uuid is read-only and can not be changed.\nuuid.0.value: UUID: may not be longer than 128 characters.\n");
// Try to update an entity without proper permissions.
$this->drupalLogout();