diff options
author | Valery Piashchynski <[email protected]> | 2021-03-28 15:50:46 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-03-29 13:32:58 +0300 |
commit | 92c5ee7ec150f48362fe839a73da9ec5fd646eb9 (patch) | |
tree | b7f58154af84d8e737b89cf4a6e9a9e9b8ca9ce0 | |
parent | dc98e1d9be0bbaf668a5a640347c9d75ecc9308c (diff) |
- Remove debug code
Signed-off-by: Valery Piashchynski <[email protected]>
-rwxr-xr-x | pkg/pool/static_pool_test.go | 2 | ||||
-rw-r--r-- | tests/test_worker.php | 32 |
2 files changed, 1 insertions, 33 deletions
diff --git a/pkg/pool/static_pool_test.go b/pkg/pool/static_pool_test.go index 2d8aad48..69527815 100755 --- a/pkg/pool/static_pool_test.go +++ b/pkg/pool/static_pool_test.go @@ -361,7 +361,7 @@ func Test_StaticPool_Stop_Worker(t *testing.T) { pipe.NewPipeFactory(), Config{ NumWorkers: 1, - AllocateTimeout: time.Second * 100, + AllocateTimeout: time.Second, DestroyTimeout: time.Second, }, ) diff --git a/tests/test_worker.php b/tests/test_worker.php deleted file mode 100644 index d0cf7bb3..00000000 --- a/tests/test_worker.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - -use Spiral\RoadRunner; -use Nyholm\Psr7; - -include "vendor/autoload.php"; - -$worker = RoadRunner\Worker::create(); -$psrFactory = new Psr7\Factory\Psr17Factory(); - -$worker = new RoadRunner\Http\PSR7Worker($worker, $psrFactory, $psrFactory, $psrFactory); -$counter = 0; - -while ($req = $worker->waitRequest()) { - try { - $rsp = new Psr7\Response(); - - if ($req->getUri()->getPath() !== '/') { - $worker->respond($rsp->withStatus(404)); - continue; - } - - $rsp->getBody()->write('Hello world!'); - $rsp->getBody()->write(PHP_EOL); - $rsp->getBody()->write((string)$counter++); - - $worker->respond($rsp); - - } catch (\Throwable $e) { - $worker->getWorker()->error((string)$e); - } -}
\ No newline at end of file |