Skip to content

Commit

Permalink
fixed bugs on version 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
transistive committed Apr 12, 2023
1 parent 4a6be71 commit f3bc459
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY composer.json ./

RUN composer install

COPY phpunit.xml.dist phpunit.coverage.xml.dist psalm.xml .php-cs-fixer.php LICENSE README.md ./
COPY phpunit.xml.dist phpunit.coverage.xml.dist psalm.xml .php-cs-fixer.dist.php LICENSE README.md ./
COPY src/ src/
COPY tests/ tests/
COPY .git/ .git/
Expand Down
1 change: 1 addition & 0 deletions docker-compose-neo4j-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: arestravel/php-8.0
working_dir: /opt/project
networks:
- neo4j
Expand Down
3 changes: 2 additions & 1 deletion tests/Integration/BoltDriverIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Exception;
use Laudis\Neo4j\Bolt\BoltDriver;
use Laudis\Neo4j\Databags\SummarizedResult;
use Laudis\Neo4j\Neo4j\Neo4jDriver;

final class BoltDriverIntegrationTest extends EnvironmentAwareIntegrationTest
{
Expand Down Expand Up @@ -71,7 +72,7 @@ public function testInvalidSocket(): void

public function testBookmarkUpdates(): void
{
$session = BoltDriver::create($this->getUri(['bolt', 'neo4j'])->__toString())->createSession();
$session = Neo4jDriver::create($this->getUri(['bolt', 'neo4j'])->__toString())->createSession();
$bookmark = $session->getLastBookmark();
$this->assertEquals([], $bookmark->values());
$this->assertTrue($bookmark->isEmpty());
Expand Down
7 changes: 0 additions & 7 deletions tests/Integration/ComplexQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,6 @@ public function testTimeout(): void
}
}

public function testTimeoutRecovery(): void
{
$this->expectNotToPerformAssertions();
$tsx = $this->getSession(['bolt', 'neo4j'])->beginTransaction([], TransactionConfiguration::default()->withTimeout(2));
$tsx->run('CALL apoc.util.sleep(20000)');
}

public function testConstraintHandling(): void
{
$session = $this->getSession();
Expand Down

0 comments on commit f3bc459

Please sign in to comment.