Skip to content

Commit

Permalink
Fix expected error code in tests when ext-sockets is not enabled
Browse files Browse the repository at this point in the history
This is a backport of reactphp#532 and corrects an oversight introduced in reactphp#482.
  • Loading branch information
WyriHaximus committed Aug 27, 2024
1 parent 8111281 commit 22dfc8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/FunctionalBrowserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public function testGetRequestWithResponseBufferExceededRejects()
$this->setExpectedException(
'OverflowException',
'Response body size of 5 bytes exceeds maximum of 4 bytes',
defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0
defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90
);
\React\Async\await($promise);
}
Expand All @@ -378,7 +378,7 @@ public function testGetRequestWithResponseBufferExceededDuringStreamingRejects()
$this->setExpectedException(
'OverflowException',
'Response body size exceeds maximum of 4 bytes',
defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0
defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90
);
\React\Async\await($promise);
}
Expand Down

0 comments on commit 22dfc8f

Please sign in to comment.