summaryrefslogtreecommitdiff
path: root/tests/psr-worker-bench.php
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-15 18:50:12 +0300
committerValery Piashchynski <[email protected]>2021-09-15 18:50:12 +0300
commit2aa0b99c588dd9c6a921904966ad435d485e23bb (patch)
tree52dd79b2f62b19fe71ce1397176afc2aaedae797 /tests/psr-worker-bench.php
parentaa7af56539177a1e1c0c115ea7e5e2f6c65215f1 (diff)
Fix websocket_plugin_test, remove sleep from the test worker
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/psr-worker-bench.php')
-rw-r--r--tests/psr-worker-bench.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/psr-worker-bench.php b/tests/psr-worker-bench.php
index f8b1b47c..e809f380 100644
--- a/tests/psr-worker-bench.php
+++ b/tests/psr-worker-bench.php
@@ -1,7 +1,9 @@
<?php
+
/**
* @var Goridge\RelayInterface $relay
*/
+
use Spiral\Goridge;
use Spiral\RoadRunner;
@@ -18,7 +20,6 @@ $psr7 = new RoadRunner\Http\PSR7Worker(
while ($req = $psr7->waitRequest()) {
try {
- sleep(3);
$resp = new \Nyholm\Psr7\Response();
$resp->getBody()->write("hello world");