Skip to content

Commit 225854c

Browse files
committed
account for error being thrown by socket functions
1 parent f3bc459 commit 225854c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Integration/BoltDriverIntegrationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Laudis\Neo4j\Bolt\BoltDriver;
1919
use Laudis\Neo4j\Databags\SummarizedResult;
2020
use Laudis\Neo4j\Neo4j\Neo4jDriver;
21+
use Throwable;
2122

2223
final class BoltDriverIntegrationTest extends EnvironmentAwareIntegrationTest
2324
{
@@ -43,7 +44,7 @@ public function testValidUrl(): void
4344
$results = BoltDriver::create($this->getUri()->withHost($ip)->__toString())
4445
->createSession()
4546
->run('RETURN 1 AS x');
46-
} catch (ConnectException $e) {
47+
} catch (Throwable $e) {
4748
$this->markTestSkipped($e->getMessage());
4849
}
4950

0 commit comments

Comments
 (0)