Skip to content
Snippets Groups Projects
Verified Commit 789bdf4e authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3311476 by nlisgo, Spokje, xjm, hb76: Skip DownloadTest on SQLite

parent 9e67c211
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace Drupal\Tests\file\Functional; namespace Drupal\Tests\file\Functional;
use Drupal\Core\Database\Database;
use Drupal\Core\File\FileSystemInterface; use Drupal\Core\File\FileSystemInterface;
/** /**
...@@ -25,6 +26,15 @@ class DownloadTest extends FileManagedTestBase { ...@@ -25,6 +26,15 @@ class DownloadTest extends FileManagedTestBase {
protected function setUp(): void { protected function setUp(): void {
parent::setUp(); parent::setUp();
// This test currently frequently causes the SQLite database to lock, so
// skip the test on SQLite until the issue can be resolved.
// @todo Fix root cause and re-enable in
// https://www.drupal.org/project/drupal/issues/3311587
if (Database::getConnection()->driver() === 'sqlite') {
$this->markTestSkipped('Test frequently causes a locked database on SQLite');
}
$this->fileUrlGenerator = $this->container->get('file_url_generator'); $this->fileUrlGenerator = $this->container->get('file_url_generator');
// Clear out any hook calls. // Clear out any hook calls.
file_test_reset(); file_test_reset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment