Skip to content

Commit 1987908

Browse files
committed
fixed regression in test
1 parent 1193c22 commit 1987908

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Integration/BoltResultIntegrationTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ public function testIterationLong(string $connection): void
6161
$socket = new StreamSocket($uri->getHost(), $uri->getPort() ?? 7687);
6262

6363
$i = 0;
64+
$factory = new BoltFactory(new Bolt($socket), Authenticate::fromUrl($uri), '', $socket);
6465
$connection = new BoltConnection(
6566
'',
6667
$uri,
6768
'',
68-
ConnectionProtocol::BOLT_V3(),
69+
ConnectionProtocol::determineBoltVersion($factory->build()[0]),
6970
AccessMode::READ(),
7071
new DatabaseInfo(''),
71-
new BoltFactory(new Bolt($socket), Authenticate::fromUrl($uri), '', $socket),
72+
$factory,
7273
null,
7374
DriverConfiguration::default()
7475
);

0 commit comments

Comments
 (0)