MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / setup_method

Method setup_method

tests/unittest/executor/test_rpc.py:479–487  ·  view source on GitHub ↗

Setup RPC server and client for timeout tests.

(self, method)

Source from the content-addressed store, hash-verified

477 return "completed"
478
479 def setup_method(self, method):
480 """Setup RPC server and client for timeout tests."""
481 # Use unique address to avoid socket conflicts
482 self.address = get_unique_ipc_addr()
483 self.server = RPCServer(self.App())
484 self.server.bind(self.address)
485 self.server.start()
486 time.sleep(0.1)
487 self.client = RPCClient(self.address)
488
489 def teardown_method(self):
490 """Shutdown server and close client."""

Callers

nothing calls this directly

Calls 6

get_unique_ipc_addrFunction · 0.90
RPCServerClass · 0.90
RPCClientClass · 0.90
bindMethod · 0.80
sleepMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected