Skip to content

Commit e0ab174

Browse files
lucasnetauWyriHaximus
authored andcommitted
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.
1 parent 8111281 commit e0ab174

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/FunctionalBrowserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public function testGetRequestWithResponseBufferExceededRejects()
366366
$this->setExpectedException(
367367
'OverflowException',
368368
'Response body size of 5 bytes exceeds maximum of 4 bytes',
369-
defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0
369+
defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90
370370
);
371371
\React\Async\await($promise);
372372
}
@@ -378,7 +378,7 @@ public function testGetRequestWithResponseBufferExceededDuringStreamingRejects()
378378
$this->setExpectedException(
379379
'OverflowException',
380380
'Response body size exceeds maximum of 4 bytes',
381-
defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0
381+
defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90
382382
);
383383
\React\Async\await($promise);
384384
}

0 commit comments

Comments
 (0)