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); }