Skip to content

Commit b435857

Browse files
committed
Merge remote-tracking branch 'trigger/MC-5694-Flaky-test-Magento-testSpecificConsumerAndRerun' into honey-bugs-pr
2 parents f6876dd + 93da949 commit b435857

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

dev/tests/integration/testsuite/Magento/MessageQueue/Model/Cron/ConsumersRunnerTest.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -109,29 +109,13 @@ protected function setUp()
109109
});
110110
}
111111

112-
/**
113-
* Checks that pid files are created
114-
*
115-
* @return void
116-
*/
117-
public function testCheckThatPidFilesWasCreated()
118-
{
119-
$this->markTestSkipped('MC-5904: Test Fails randomly,');
120-
$this->consumersRunner->run();
121-
foreach ($this->consumerConfig->getConsumers() as $consumer) {
122-
$this->waitConsumerPidFile($consumer->getName());
123-
}
124-
}
125-
126112
/**
127113
* Tests running of specific consumer and his re-running when it is working
128114
*
129115
* @return void
130116
*/
131117
public function testSpecificConsumerAndRerun()
132118
{
133-
$this->markTestSkipped('MC-5904: Test Fails randomly,');
134-
135119
$specificConsumer = 'quoteItemCleaner';
136120
$pidFilePath = $this->getPidFileName($specificConsumer);
137121
$config = $this->config;
@@ -188,23 +172,6 @@ public function testCronJobDisabled()
188172
}
189173
}
190174

191-
/**
192-
* @param string $consumerName
193-
* @return void
194-
*/
195-
private function waitConsumerPidFile($consumerName)
196-
{
197-
$pidFileFullPath = $this->getPidFileFullPath($consumerName);
198-
$i = 0;
199-
do {
200-
sleep(1);
201-
} while (!file_exists($pidFileFullPath) && ($i++ < 60));
202-
203-
if (!file_exists($pidFileFullPath)) {
204-
$this->fail($consumerName . ' pid file does not exist.');
205-
}
206-
}
207-
208175
/**
209176
* @return array
210177
*/

0 commit comments

Comments
 (0)