diff --git a/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ChangedTestItem.php b/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ChangedTestItem.php index 770f222..f429b39 100644 --- a/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ChangedTestItem.php +++ b/core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/ChangedTestItem.php @@ -35,7 +35,8 @@ public function preSave() { // change the entity with the original language at the beginning of the // second. Comply with this requirement on real sites do not need to. if ($this->getEntity()->language()->isDefault()) { - time_sleep_until ( time() + 1 ); + // Wait 1.1 second's, because time_sleep_until works not very accurate. + time_sleep_until(time() + 1.1); } $this->value = time(); }