Skip to content

Commit 8dd1bcf

Browse files
Stanislau KomarStanislau Komar
authored andcommitted
Fix I/O bug in ApplicationRoadrunnerStartedListenerTest
1 parent aabcbf8 commit 8dd1bcf

File tree

3 files changed

+4
-61
lines changed

3 files changed

+4
-61
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea/
12
vendor
23
composer.lock
34
.phpunit.result.cache

src/Listener/ApplicationRoadrunnerStartedListener.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace Micro\Plugin\Http\Listener;
1515

1616
use Micro\Component\EventEmitter\EventInterface;
17+
use Micro\Component\EventEmitter\EventListenerInterface;
1718
use Micro\Kernel\App\Business\Event\ApplicationReadyEvent;
1819
use Micro\Kernel\App\Business\Event\ApplicationReadyEventInterface;
1920
use Micro\Plugin\Http\Facade\HttpFacadeInterface;
@@ -22,7 +23,7 @@
2223
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
2324
use Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory;
2425

25-
final readonly class ApplicationRoadrunnerStartedListener
26+
final readonly class ApplicationRoadrunnerStartedListener implements EventListenerInterface
2627
{
2728
public function __construct(
2829
private HttpFacadeInterface $httpFacade
@@ -52,7 +53,7 @@ public function on(EventInterface $event): void
5253
while ($request = $worker->waitRequest()) {
5354
try {
5455
$appRequest = $httpFoundationFactory->createRequest($request);
55-
$appResponse = $this->httpFacade->execute($appRequest);
56+
$appResponse = $this->httpFacade->execute($appRequest, false);
5657
$worker->respond($httpMessageFactory->createResponse($appResponse));
5758
} catch (\Throwable $e) {
5859
$worker->getWorker()->error((string) $e);

tests/Unit/Listener/ApplicationRoadrunnerStartedListenerTest.php

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)