MCPcopy Create free account
hub / github.com/celery/celery / Connection

Class Connection

t/unit/worker/test_worker.py:326–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324 def test_loop_ignores_socket_timeout(self):
325
326 class Connection(self.app.connection_for_read().__class__):
327 obj = None
328
329 def drain_events(self, **kwargs):
330 self.obj.connection = None
331 raise socket.timeout(10)
332
333 c = self.NoopConsumer()
334 c.connection = Connection(self.app.conf.broker_url)

Callers 5

test_loopMethod · 0.70
test_start__loopMethod · 0.70

Calls 1

connection_for_readMethod · 0.45

Tested by 5

test_loopMethod · 0.56
test_start__loopMethod · 0.56