File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
services/web/server/tests/unit/isolated Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 55# pylint: disable=unused-variable
66
77import asyncio
8+ import json
89import logging
910from collections .abc import Callable , Coroutine
1011
@@ -87,9 +88,11 @@ def mock_environment(
8788 {
8889 ** mock_env_devel_environment ,
8990 "AIODEBUG_SLOW_DURATION_SECS" : f"{ SLOW_HANDLER_DELAY_SECS / 10 } " ,
90- "DIAGNOSTICS_MAX_TASK_DELAY" : f"{ SLOW_HANDLER_DELAY_SECS } " ,
91- "DIAGNOSTICS_MAX_AVG_LATENCY" : f"{ 2.0 } " ,
92- "DIAGNOSTICS_START_SENSING_DELAY" : f"{ 0 } " ,
91+ "WEBSERVER_DIAGNOSTICS" : json .dumps ({
92+ "DIAGNOSTICS_MAX_AVG_LATENCY" : "2.0" ,
93+ "DIAGNOSTICS_MAX_TASK_DELAY" : f"{ SLOW_HANDLER_DELAY_SECS } " ,
94+ "DIAGNOSTICS_START_SENSING_DELAY" : f"{ 0 } " ,
95+ }),
9396 "SC_HEALTHCHECK_TIMEOUT" : "2m" ,
9497 "DIAGNOSTICS_HEALTHCHECK_ENABLED" : "1" ,
9598 },
You can’t perform that action at this time.
0 commit comments