Skip to content

Commit 2a65994

Browse files
committed
MC-19250: The stuck deployment on the Cloud because of consumers
1 parent 8758911 commit 2a65994

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Framework\MessageQueue\UseCase;
7+
8+
use Magento\Framework\App\DeploymentConfig\FileReader;
9+
use Magento\Framework\Config\File\ConfigFilePool;
10+
11+
class WaitAndNotWaitMessagesTest extends QueueTestCaseAbstract
12+
{
13+
/**
14+
* @var FileReader
15+
*/
16+
private $reader;
17+
18+
/**
19+
* @var array
20+
*/
21+
private $config;
22+
23+
/**
24+
* @inheritdoc
25+
*/
26+
protected function setUp()
27+
{
28+
parent::setUp();
29+
$this->reader = $this->objectManager->get(FileReader::class);
30+
31+
$this->config = $this->loadConfig();
32+
}
33+
34+
public function testDefaultConfiguration()
35+
{
36+
$this->assertArraySubset(['queue' => ['consumers_wait_for_messages' => 1]], $this->config);
37+
}
38+
39+
/**
40+
* @return array
41+
*/
42+
private function loadConfig(): array
43+
{
44+
return $this->reader->load(ConfigFilePool::APP_ENV);
45+
}
46+
}

0 commit comments

Comments
 (0)