From e0ab1743cddc80774f36019641b0a5b2a133677f Mon Sep 17 00:00:00 2001 From: lucasnetau Date: Tue, 27 Aug 2024 08:10:36 +0200 Subject: [PATCH] Fix expected error code in tests when ext-sockets is not enabled This is a backport of #532 and corrects an oversight introduced in #482. --- tests/FunctionalBrowserTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/FunctionalBrowserTest.php b/tests/FunctionalBrowserTest.php index 7b8ff84b..ef1b3936 100644 --- a/tests/FunctionalBrowserTest.php +++ b/tests/FunctionalBrowserTest.php @@ -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); } @@ -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); }