From cec21a67593a5ad9ca16296552451bd7d20b28d6 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Wed, 12 Feb 2014 22:06:22 +0000 Subject: [PATCH] Issue #2194357 by alexpott, Berdir: CacheArray::__destruct() invoked after test tables have been removed. --- core/modules/simpletest/lib/Drupal/simpletest/TestBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php index f71e1a2e9398..4a6e7389b6df 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php @@ -1148,6 +1148,10 @@ private function restoreEnvironment() { } } + // Sleep for 50ms to allow shutdown functions and terminate events to + // complete. Further information: https://drupal.org/node/2194357. + usleep(50000); + // Remove all prefixed tables. // @todo Connection prefix info is not normalized into an array. $original_connection_info = Database::getConnectionInfo('simpletest_original_default'); -- GitLab