Skip to content

Commit 1e7a6f7

Browse files
committed
changed hello to init for cross compatibility
1 parent bb91dbd commit 1e7a6f7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/connection/AConnectionTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ public function testSecondsTimeout(string $alias): void
7373
public function testTimeoutRecoverAndReset(string $alias): void
7474
{
7575
$socket = $this->getConnection($alias);
76-
/** @var V4 $protocol */
7776
$protocol = (new Bolt($socket))->build();
78-
$protocol->hello(Auth::basic($GLOBALS['NEO_USER'], $GLOBALS['NEO_PASS']));
77+
$protocol->init(Auth::basic($GLOBALS['NEO_USER'], $GLOBALS['NEO_PASS']));
7978

8079
$time = microtime(true);
8180
try {
@@ -95,7 +94,7 @@ public function testTimeoutRecoverAndReset(string $alias): void
9594
} catch (MessageException $e) {
9695
echo $e->getMessage();
9796
$protocol = (new Bolt($socket))->build();
98-
$protocol->hello(Auth::basic($GLOBALS['NEO_USER'], $GLOBALS['NEO_PASS']));
97+
$protocol->init(Auth::basic($GLOBALS['NEO_USER'], $GLOBALS['NEO_PASS']));
9998
}
10099

101100
$socket->setTimeout(1.0);

0 commit comments

Comments
 (0)