class_docstr: Test setting keep_alive_timeout_s in config and env.
class_docstr_tok: ["Test","setting","keep_alive_timeout_s","in","config","and","env","."]
docstr: Test when no keep_alive_timeout_s is set.
  
  When the keep_alive_timeout_s is not set, the uvicorn keep alive is 5.
docstr_tok: ["Test","when","no","keep_alive_timeout_s","is","set",".","When","the","keep_alive_timeout_s","is","not","set",",","the","uvicorn","keep","alive","is","5","."]
code: def test_default_keep_alive_timeout_s(self, ray_shutdown):
      """Test when no keep_alive_timeout_s is set.
  
      When the keep_alive_timeout_s is not set, the uvicorn keep alive is 5.
      """
      serve.start()
      proxy_actor = self.get_proxy_actor()
      assert (
          ray.get(proxy_actor._uvicorn_keep_alive.remote())
          == DEFAULT_UVICORN_KEEP_ALIVE_TIMEOUT_S
      )
  
imports: import asyncio
  import pickle
  import sys
  from typing import Dict
  from unittest.mock import AsyncMock
  import grpc
  import pytest
  import ray
  from ray import serve
  from ray.actor import ActorHandle
  from ray.serve._private.common import DeploymentID, EndpointInfo, EndpointTag
  from ray.serve._private.constants import DEFAULT_UVICORN_KEEP_ALIVE_TIMEOUT_S, SERVE_NAMESPACE
  from ray.serve._private.proxy import DRAINED_MESSAGE, HEALTH_CHECK_SUCCESS_MESSAGE, HTTPProxy, ResponseStatus, gRPCProxy
  from ray.serve._private.proxy_request_response import ProxyRequest
  from ray.serve._private.proxy_router import ProxyRouter
  from ray.serve._private.test_utils import FakeGrpcContext
  from ray.serve.generated import serve_pb2
  from ray.serve.grpc_util import RayServegRPCContext
label_desc: Use image node_id 2 for calling the TestTimeoutKeepAliveConfig obj's underlying member method code with example usage: obj.test_default_keep_alive_timeout_s(ray_shutdown) without return types