Skip to content

Commit 2edb9d1

Browse files
committed
don't consume results before reset
1 parent 6aa1fca commit 2edb9d1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Bolt/BoltConnection.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ private function consumeResults(): void
178178
*/
179179
public function reset(): void
180180
{
181-
$this->consumeResults();
182-
183181
try {
184182
$this->protocol()->reset();
185183
} catch (MessageException $e) {

tests/Integration/BoltResultIntegrationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
final class BoltResultIntegrationTest extends TestCase
3131
{
3232
/**
33-
* @return list<list<string>>
33+
* @return array<string, list<string>>
3434
*/
3535
public function buildConnections(): array
3636
{
@@ -40,13 +40,13 @@ public function buildConnections(): array
4040
/** @var string|mixed $connections */
4141
$connections = $_ENV['NEO4J_CONNECTIONS'] ?? false;
4242
if (!is_string($connections)) {
43-
return [['bolt://neo4j:test@neo4j']];
43+
return ['bolt://neo4j:test@neo4j' => ['bolt://neo4j:test@neo4j']];
4444
}
4545
}
4646

4747
$tbr = [];
4848
foreach (explode(',', $connections) as $connection) {
49-
$tbr[] = [$connection];
49+
$tbr[$connection] = [$connection];
5050
}
5151

5252
return $tbr;

0 commit comments

Comments
 (0)