summaryrefslogtreecommitdiff
path: root/tests/delay.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/delay.php')
-rw-r--r--tests/delay.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/delay.php b/tests/delay.php
index f0435b05..2c8255ba 100644
--- a/tests/delay.php
+++ b/tests/delay.php
@@ -11,7 +11,7 @@ $rr = new RoadRunner\Worker($relay);
while ($in = $rr->waitPayload()) {
try {
usleep($in->body * 1000);
- $rr->send('');
+ $rr->respond(new RoadRunner\Payload(''));
} catch (\Throwable $e) {
$rr->error((string)$e);
}