Skip to content

Commit b0b6b3f

Browse files
committed
ECP-515: Storefront Get API
- fix tests
1 parent 173d01a commit b0b6b3f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

dev/tests/integration/testsuite/Magento/Framework/MessageQueue/UseCase/WaitAndNotWaitMessagesTest.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,21 @@ protected function setUp(): void
6666
*/
6767
public function testWaitForMessages()
6868
{
69-
$this->assertArrayHasKey('queue', $this->config);
70-
$this->assertArrayHasKey('consumers_wait_for_messages', $this->config['queue']);
71-
$this->assertEquals(1, $this->config['queue']['consumers_wait_for_messages']);
69+
$this->publisherConsumerController->stopConsumers();
70+
71+
$config = $this->config;
72+
$config['queue']['consumers_wait_for_messages'] = 1;
73+
$this->writeConfig($config);
74+
75+
$loadedConfig = $this->loadConfig();
76+
$this->assertArrayHasKey('queue', $loadedConfig);
77+
$this->assertArrayHasKey('consumers_wait_for_messages', $loadedConfig['queue']);
78+
$this->assertEquals(1, $loadedConfig['queue']['consumers_wait_for_messages']);
7279

7380
foreach ($this->messages as $message) {
7481
$this->publishMessage($message);
7582
}
76-
83+
$this->publisherConsumerController->startConsumers();
7784
$this->waitForAsynchronousResult(count($this->messages), $this->logFilePath);
7885

7986
foreach ($this->messages as $item) {

0 commit comments

Comments
 (0)