From 905eabfc3c41b229d0a3527e05c7f15f07f3f215 Mon Sep 17 00:00:00 2001 From: James Lucas Date: Wed, 12 Jun 2024 13:41:00 +1000 Subject: [PATCH] Fix expected error code when ext-sockets is not enabled --- tests/FunctionalBrowserTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/FunctionalBrowserTest.php b/tests/FunctionalBrowserTest.php index d89d92e9..210cfa50 100644 --- a/tests/FunctionalBrowserTest.php +++ b/tests/FunctionalBrowserTest.php @@ -373,7 +373,7 @@ public function testGetRequestWithResponseBufferExceededRejects() $this->expectException(\OverflowException::class); $this->expectExceptionMessage('Response body size of 5 bytes exceeds maximum of 4 bytes'); - $this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0); + $this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90); await($promise); } @@ -383,7 +383,7 @@ public function testGetRequestWithResponseBufferExceededDuringStreamingRejects() $this->expectException(\OverflowException::class); $this->expectExceptionMessage('Response body size exceeds maximum of 4 bytes'); - $this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0); + $this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90); await($promise); }