Skip to content

Commit bd288fe

Browse files
committed
added timeout no return test failing
1 parent a6e672b commit bd288fe

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/Integration/ComplexQueryTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,25 @@ public function testDiscardAfterTimeout(string $alias): void
418418
unset($result);
419419
}
420420

421+
/**
422+
* @dataProvider connectionAliases
423+
*
424+
* @doesNotPerformAssertions
425+
*/
426+
public function testTimeoutNoReturn(string $alias): void
427+
{
428+
if (str_starts_with($alias, 'http')) {
429+
self::markTestSkipped('Http does not support timeouts at the moment');
430+
}
431+
432+
$result = $this->getClient()
433+
->getDriver($alias)
434+
->createSession()
435+
->run('CALL apoc.util.sleep(2000000)', [], TransactionConfiguration::default()->withTimeout(150));
436+
437+
unset($result);
438+
}
439+
421440
/**
422441
* @dataProvider connectionAliases
423442
*/

0 commit comments

Comments
 (0)