[*] MQ нагрузочный тест
This commit is contained in:
1 parent
a6d916c4ae
commit
93d7d7eef7
2 files changed
+2
-1
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
@ignore_user_abort(true);
|
||||
set_time_limit(0);
|
||||
|
||||
require_once __DIR__ . '/bootstrap.php';
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
*/
|
||||
public static function test2(...$params): string
|
||||
{
|
||||
sleep(rand(10, 30));
|
||||
sleep(rand(10, 60));
|
||||
$result = rand(0, 100);
|
||||
if (($result % 2) == 0) {
|
||||
throw new CoreException('Сервер обмена временно недоступен');
|
||||
|
||||
Reference in new issue
Block a user