diff --git a/core/modules/media_library/tests/src/FunctionalJavascript/UploadFail.php b/core/modules/media_library/tests/src/FunctionalJavascript/UploadFail.php index 27a5227a06..a1a8a0c56e 100644 --- a/core/modules/media_library/tests/src/FunctionalJavascript/UploadFail.php +++ b/core/modules/media_library/tests/src/FunctionalJavascript/UploadFail.php @@ -92,11 +92,7 @@ public function testManyConsecutiveUploads() { ->fetchAll(); $output = "The file_managed table not updated on iteration $count."; foreach ($logs as $log) { - $output .= "\n\n\nmessage: " . $log->message . "\n\n\n variables: " . $log->variables; - } - - if (empty($output)) { - $output = "The file_managed table not updated on iteration $count."; + $output .= "\n" . $log->message; } throw new AssertionFailedError($output); } @@ -116,8 +112,7 @@ public function testManyConsecutiveUploads() { $this->assertElementExistsAfterWait('css', '[name="field_twin_media-0-media-library-remove-button"]', 10000, "Media remove button not found on iteration $count")->click(); $this->waitForText('2 media items remaining', 10000, "'2 media items remaining' not found on iteration $count"); $count++; - // If iteration was successful, clear out messages. - $this->container->get('database')->truncate('watchdog')->execute(); + $this->resetAll(); usleep(10000); }