This probably would not happen on DrupalCI
But this code in \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase$this->assertSame([str_replace($this->entity->id(), static::$firstCreatedEntityId, $this->entity->toUrl('canonical')->setAbsolute(TRUE)->toString())], $response->getHeader('Location'));
causes a error for me locally
1) Drupal\Tests\rest\Functional\EntityResource\User\UserJsonAnonTest::testPost
Failed asserting that Array &0 (
0 => 'http://www.local.dev/d8_3_rest/user/4'
) is identical to Array &0 (
0 => 'http://www.local.dev/d8_4_rest/user/4'
).
This is because "3" is replaced in "d8_3_rest" where it should only be replaced in "user/3"