Skip to content

Commit 7dfee54

Browse files
committed
fix assertion that is wrong when using 'Connection: Keep-Alive'
1 parent 069cbe9 commit 7dfee54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testGetOptions()
6767
static::assertEquals(12, $value);
6868

6969
$value = $connection->getOption(ConnectionOptions::OPTION_CONNECTION);
70-
static::assertEquals('Close', $value);
70+
static::assertTrue($value === 'Close' || $value === 'Keep-Alive');
7171

7272
$value = $connection->getOption(ConnectionOptions::OPTION_RECONNECT);
7373
static::assertFalse($value);

0 commit comments

Comments
 (0)