Skip to content

Commit f2b8bf3

Browse files
authored
Merge pull request #539 from WyriHaximus-labs/1.x-fix-expected-error-code-in-tests-when-ext-sockets-is-not-enabled
Fix expected error code in tests when ext-sockets is not enabled
2 parents c4855ce + e0ab174 commit f2b8bf3

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)