Skip to content

Commit fc09a64

Browse files
authored
Merge pull request #532 from lucasnetau/patch-1
Fix expected error code in tests when ext-sockets is not enabled
2 parents cd24a5b + 905eabf commit fc09a64

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
@@ -373,7 +373,7 @@ public function testGetRequestWithResponseBufferExceededRejects()
373373

374374
$this->expectException(\OverflowException::class);
375375
$this->expectExceptionMessage('Response body size of 5 bytes exceeds maximum of 4 bytes');
376-
$this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0);
376+
$this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90);
377377
await($promise);
378378
}
379379

@@ -383,7 +383,7 @@ public function testGetRequestWithResponseBufferExceededDuringStreamingRejects()
383383

384384
$this->expectException(\OverflowException::class);
385385
$this->expectExceptionMessage('Response body size exceeds maximum of 4 bytes');
386-
$this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 0);
386+
$this->expectExceptionCode(defined('SOCKET_EMSGSIZE') ? SOCKET_EMSGSIZE : 90);
387387
await($promise);
388388
}
389389

0 commit comments

Comments
 (0)