Skip to content

Commit 7930805

Browse files
committed
AC-6720::Cloud Native S3 Web API test Failures -2.4-develop - Added sleep time before write
1 parent e6fcfd2 commit 7930805

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/TestCase/GraphQlAbstract.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ protected function runTest()
254254
$initialConfig = $this->envConfigReader->load(ConfigFilePool::APP_ENV);
255255

256256
try {
257-
$testResult = parent::runTest();
257+
return parent::runTest();
258258
} finally {
259259
$this->formatter = $this->formatter ?: new PhpFormatter();
260260
$this->filesystem = $this->filesystem ?: Bootstrap::getObjectManager()->get(Filesystem::class);
@@ -263,10 +263,9 @@ protected function runTest()
263263
$resetConfig = $this->resetAddedSection($initialConfig, $currentConfig, $cacheSaltPathChunks);
264264
$resetFileContents = $this->formatter->format($resetConfig);
265265
$directoryWrite = $this->filesystem->getDirectoryWrite(DirectoryList::CONFIG);
266+
sleep(4);
266267
$directoryWrite->writeFile($this->envConfigPath, $resetFileContents);
267268
}
268-
269-
return $testResult;
270269
}
271270

272271
/**

dev/tests/api-functional/framework/Magento/TestFramework/WebApiApplication.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,6 @@ public function install($cleanup)
5454
$this->runPostInstallCommands();
5555
}
5656

57-
/**
58-
* Initialize application
59-
*
60-
* @param array $overriddenParams
61-
* @return void
62-
*/
63-
public function initialize($overriddenParams = [])
64-
{
65-
parent::initialize($overriddenParams);
66-
$objectManager = Helper\Bootstrap::getObjectManager();
67-
$objectManager->removeSharedInstance(\Magento\Framework\App\DeploymentConfig::class);
68-
}
69-
7057
/**
7158
* @inheritdoc
7259
*

0 commit comments

Comments
 (0)