Skip to content
Snippets Groups Projects
Commit 270afd55 authored by catch's avatar catch Committed by Adam G-H
Browse files

Issue #3505112 by catch: Switch off automated cron in performance tests

parent 5913628a
Branches
Tags
1 merge request!494Uninstall automated_cron.
Pipeline #419790 passed
......@@ -32,6 +32,9 @@ class PerformanceTest extends PerformanceTestBase {
public function testPerformance(): void {
$dir = InstalledVersions::getInstallPath('drupal/drupal_cms_starter');
$this->applyRecipe($dir);
// Applying the recipe installs automated cron, but we don't want cron to
// run in the middle of a performance test, so uninstall it.
\Drupal::service('module_installer')->uninstall(['automated_cron']);
$this->doTestAnonymousFrontPage();
$this->doTestEditorFrontPage();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment