summaryrefslogtreecommitdiff
path: root/tests/error.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/error.php')
-rw-r--r--tests/error.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/error.php b/tests/error.php
index 8e1c8d0d..c77e6817 100644
--- a/tests/error.php
+++ b/tests/error.php
@@ -8,6 +8,6 @@ use Spiral\RoadRunner;
$rr = new RoadRunner\Worker($relay);
-while ($in = $rr->receive($ctx)) {
- $rr->error((string)$in);
+while ($in = $rr->waitPayload()) {
+ $rr->error((string)$in->body);
}