File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,6 @@ def test_kv_cache_events(
292
292
log_stats = False ,
293
293
)
294
294
endpoint = publisher_config .endpoint .replace ("*" , "127.0.0.1" )
295
- time .sleep (0.1 )
296
295
subscriber = MockSubscriber (endpoint ,
297
296
topic = publisher_config .topic ,
298
297
decode_type = KVEventBatch )
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ def __init__(
130
130
self ._endpoint = endpoint
131
131
self ._replay_endpoint = replay_endpoint
132
132
self ._hwm = hwm
133
+ self ._socket_setup ()
133
134
134
135
# Payload
135
136
self ._seq_gen = count ()
@@ -207,7 +208,6 @@ def _socket_setup(self) -> None:
207
208
def _publisher_thread (self ) -> None :
208
209
"""Background thread that processes the event queue."""
209
210
self ._pack = msgspec .msgpack .Encoder ()
210
- self ._socket_setup ()
211
211
212
212
assert self ._pub is not None # narrows type for mypy
213
213
You can’t perform that action at this time.
0 commit comments