summaryrefslogtreecommitdiff
path: root/tests/sleep.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sleep.php')
-rw-r--r--tests/sleep.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sleep.php b/tests/sleep.php
index b3ea8235..e34a6834 100644
--- a/tests/sleep.php
+++ b/tests/sleep.php
@@ -5,11 +5,11 @@ declare(strict_types=1);
use Spiral\Goridge\StreamRelay;
use Spiral\RoadRunner\Worker as RoadRunner;
-require dirname(__DIR__) . "/vendor_php/autoload.php";
+require __DIR__ . "/vendor/autoload.php";
$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT));
-while($rr->receive($ctx)){
+while($rr->waitPayload()){
sleep(3);
$rr->send("");
-} \ No newline at end of file
+}