Skip to content

Commit 2eb575b

Browse files
committed
MC-5926: Conflict of simultaneous write in Redis cache
- fix tests
1 parent 39665d6 commit 2eb575b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/code/Magento/Deploy/Test/Unit/Model/FilesystemTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,22 @@ public function testRegenerateStatic()
116116
$this->storeView->method('retrieveLocales')
117117
->willReturn($storeLocales);
118118

119-
$setupDiCompileCmd = $this->cmdPrefix . 'setup:di:compile';
119+
$setupDiCompileCmd = $this->cmdPrefix . 'cache:flush ';
120120
$this->shell->expects(self::at(0))
121121
->method('execute')
122122
->with($setupDiCompileCmd);
123123

124+
$setupDiCompileCmd = $this->cmdPrefix . 'setup:di:compile';
125+
$this->shell->expects(self::at(1))
126+
->method('execute')
127+
->with($setupDiCompileCmd);
128+
124129
$this->initAdminLocaleMock('en_US');
125130

126131
$usedLocales = ['fr_FR', 'de_DE', 'nl_NL', 'en_US'];
127132
$staticContentDeployCmd = $this->cmdPrefix . 'setup:static-content:deploy -f '
128133
. implode(' ', $usedLocales);
129-
$this->shell->expects(self::at(1))
134+
$this->shell->expects(self::at(2))
130135
->method('execute')
131136
->with($staticContentDeployCmd);
132137

dev/tests/integration/framework/Magento/TestFramework/App/Shell.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\TestFramework\App;
7+
78
/**
89
* Shell command line wrapper encapsulates command execution and arguments escaping
910
*/

0 commit comments

Comments
 (0)