Skip to content
Snippets Groups Projects

Issue #3364958: Stages should be destroyed in the background, during cron runs

Merged Issue #3364958: Stages should be destroyed in the background, during cron runs
1 unresolved thread
1 unresolved thread
1 file
+ 0
2
Compare changes
  • Side-by-side
  • Inline
@@ -385,7 +385,6 @@ END;
$this->assertDirectoryExists($original_stage_directory);
$listener = function (PostRequireEvent $event) use (&$cron_stage_dir, $original_stage_directory): void {
$this->assertDirectoryDoesNotExist($original_stage_directory);
$cron_stage_dir = $this->container->get('package_manager.stager')->getInvocationArguments()[0][1]->resolved();
$this->assertSame($event->stage->getStageDirectory(), $cron_stage_dir);
$this->assertDirectoryExists($cron_stage_dir);
@@ -396,7 +395,6 @@ END;
$this->runConsoleUpdateStage();
$this->assertIsString($cron_stage_dir);
$this->assertNotEquals($original_stage_directory, $cron_stage_dir);
$this->assertDirectoryDoesNotExist($cron_stage_dir);
$this->assertTrue($this->logger->hasRecord('The existing stage was not in the process of being applied, so it was destroyed to allow updating the site to a secure version during cron.', (string) RfcLogLevel::NOTICE));
$stage2 = $this->createStage();
$stage2->create();
Loading