MCPcopy Create free account
hub / github.com/sammchardy/python-binance / test_multiple_sockets

Function test_multiple_sockets

tests/test_threaded_stream.py:170–183  ·  view source on GitHub ↗

Test managing multiple sockets

(manager)

Source from the content-addressed store, hash-verified

168
169@pytest.mark.asyncio
170async def test_multiple_sockets(manager):
171 """Test managing multiple sockets"""
172 socket_names = ["socket1", "socket2", "socket3"]
173
174 # Start multiple sockets
175 for name in socket_names:
176 manager._socket_running[name] = True
177
178 # Stop all sockets
179 manager.stop()
180
181 # Verify all sockets are stopped
182 for name in socket_names:
183 assert manager._socket_running[name] is False
184
185
186@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

stopMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…