[*] MQ нагрузочный тест

This commit is contained in:
rsgrinko committed 2022-07-08 18:36:33 +03:00
1 parent a6d916c4ae
commit 93d7d7eef7
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
<?php <?php
@ignore_user_abort(true); @ignore_user_abort(true);
set_time_limit(0);
require_once __DIR__ . '/bootstrap.php'; require_once __DIR__ . '/bootstrap.php';
+1 -1
View File
@@ -142,7 +142,7 @@
*/ */
public static function test2(...$params): string public static function test2(...$params): string
{ {
sleep(rand(10, 30)); sleep(rand(10, 60));
$result = rand(0, 100); $result = rand(0, 100);
if (($result % 2) == 0) { if (($result % 2) == 0) {
throw new CoreException('Сервер обмена временно недоступен'); throw new CoreException('Сервер обмена временно недоступен');