Skip to content

Commit 95e11ea

Browse files
committed
added tests for long queries without timing out
1 parent bb464e0 commit 95e11ea

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/connection/AConnectionTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ public function testMillisecondTimeout(string $alias): void
4545
}
4646
}
4747

48+
49+
/**
50+
* @dataProvider provideConnections
51+
*
52+
* @doesNotPerformAssertions
53+
*/
54+
public function testLongNoTimeout(string $alias): void
55+
{
56+
$socket = $this->getConnection($alias);
57+
$protocol = (new Bolt($socket))->build();
58+
$socket->setTimeout(200);
59+
$protocol->init(Auth::basic($GLOBALS['NEO_USER'], $GLOBALS['NEO_PASS']));
60+
61+
$protocol->run('CALL apoc.util.sleep(150000)', [], ['tx_timeout' => 150000]);
62+
}
63+
4864
/**
4965
* @dataProvider provideConnections
5066
*/

0 commit comments

Comments
 (0)