Skip to content

Commit

Permalink
Merge pull request #539 from WyriHaximus-labs/1.x-fix-expected-error-…
Browse files Browse the repository at this point in the history
…code-in-tests-when-ext-sockets-is-not-enabled

Fix expected error code in tests when ext-sockets is not enabled
  • Loading branch information
clue authored Aug 30, 2024
2 parents c4855ce + e0ab174 commit f2b8bf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/FunctionalBrowserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit f2b8bf3

Please sign in to comment.