Skip to content

Commit 3389e89

Browse files
committed
ACP2E-2138: [Cloud]RabbitMQ Broken pipe or closed connection errors during indexing
1 parent b553bc3 commit 3389e89

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/code/Magento/Indexer/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"require": {
88
"php": "~8.1.0||~8.2.0",
99
"magento/framework": "*",
10+
"magento/framework-amqp": "*",
1011
"magento/module-backend": "*"
1112
},
1213
"type": "magento2-module",

lib/internal/Magento/Framework/Amqp/Test/Unit/ConfigPoolTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ protected function setUp(): void
3636
public function testGetConnection()
3737
{
3838
$config = $this->createMock(Config::class);
39-
$this->factory->expects($this->once())->method('create')->with(['connectionName' => 'amqp'])->willReturn($config);
39+
$this->factory->expects($this->once())
40+
->method('create')
41+
->with(['connectionName' => 'amqp'])
42+
->willReturn($config);
4043
$this->assertEquals($config, $this->model->get('amqp'));
4144
//test that object is cached
4245
$this->assertEquals($config, $this->model->get('amqp'));

0 commit comments

Comments
 (0)