summaryrefslogtreecommitdiff
path: root/plugins/server/tests/socket.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-12-14 18:23:03 +0300
committerWolfy-J <[email protected]>2020-12-14 18:23:03 +0300
commit6ae6f8968188d5851e1929fff81e15cb730619b4 (patch)
treeed947361c0f108111f5bdb30c40dae242faf4207 /plugins/server/tests/socket.php
parent2ba2b5e0c6f42d480600aa666ad0840ccee12a18 (diff)
- fixing tests
Diffstat (limited to 'plugins/server/tests/socket.php')
-rw-r--r--plugins/server/tests/socket.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/server/tests/socket.php b/plugins/server/tests/socket.php
index 143c3ce4..1b76481a 100644
--- a/plugins/server/tests/socket.php
+++ b/plugins/server/tests/socket.php
@@ -6,7 +6,7 @@
use Spiral\Goridge;
use Spiral\RoadRunner;
-require dirname(__DIR__) . "/../../vendor_php/autoload.php";
+require dirname(__DIR__) . "/../../tests/vendor/autoload.php";
$relay = new Goridge\SocketRelay(
"unix.sock",
@@ -16,9 +16,9 @@ $relay = new Goridge\SocketRelay(
$rr = new RoadRunner\Worker($relay);
-while ($in = $rr->receive($ctx)) {
+while ($in = $rr->waitPayload()) {
try {
- $rr->send((string)$in);
+ $rr->send((string)$in->body);
} catch (\Throwable $e) {
$rr->error((string)$e);
}