Exemple #1
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0')
     cls.server_cfg = yield from send('arbiter', 'run', s)
     cls.client = Echo(cls.server_cfg.addresses[0])
     cls.green = EchoGreen(cls.server_cfg.addresses[0])
     cls.msg = b''.join((b'a' for x in range(2**13)))
     cls.pool = greenio.GreenPool()
Exemple #2
0
 async def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0')
     cls.server_cfg = await send('arbiter', 'run', s)
     cls.client = Echo(cls.server_cfg.addresses[0])
     cls.green = EchoGreen(cls.server_cfg.addresses[0])
     cls.msg = b'a'*2**13
     cls.pool = greenio.GreenPool()
Exemple #3
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0')
     cls.server_cfg = yield from send('arbiter', 'run', s)
     cls.client = Echo(cls.server_cfg.addresses[0])
     cls.green = EchoGreen(cls.server_cfg.addresses[0])
     cls.msg = b''.join((b'a' for x in range(2**13)))
     cls.pool = greenio.GreenPool()
Exemple #4
0
 async def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0')
     cls.server_cfg = await send('arbiter', 'run', s)
     cls.client = Echo(cls.server_cfg.addresses[0])
     cls.green = EchoGreen(cls.server_cfg.addresses[0])
     cls.msg = b'a'*2**13
     cls.pool = greenio.GreenPool()
Exemple #5
0
 async def setUpClass(cls):
     s = server(name=cls.__name__.lower(),
                bind='127.0.0.1:0',
                backlog=1024,
                concurrency=cls.concurrency)
     cls.server_cfg = await send('arbiter', 'run', s)
     cls.client = Echo(cls.server_cfg.addresses[0])
Exemple #6
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(),
                bind='127.0.0.1:0',
                concurrency=cls.concurrency)
     outcome = pulsar.send('arbiter', 'run', s)
     yield outcome
     cls.server = outcome.result
Exemple #7
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0',
                concurrency=cls.concurrency)
     cls.server = yield pulsar.send('arbiter', 'run', s)
Exemple #8
0
 async def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0',
                backlog=1024, concurrency=cls.concurrency)
     cls.server_cfg = await send('arbiter', 'run', s)
     cls.client = Echo(cls.server_cfg.addresses[0])
Exemple #9
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind="127.0.0.1:0", concurrency=cls.concurrency)
     cls.server = yield pulsar.send("arbiter", "run", s)
Exemple #10
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(),
                bind='127.0.0.1:0',
                concurrency=cls.cfg.concurrency)
     cls.server_cfg = yield from send('arbiter', 'run', s)
     cls.client = EchoGreen(cls.server_cfg.addresses[0])
Exemple #11
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0',
                concurrency=get_actor().cfg.concurrency)
     cls.server = yield pulsar.send('arbiter', 'run', s)
     cls.client = Echo(force_sync=True)
Exemple #12
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0')
     cls.server_cfg = yield pulsar.send('arbiter', 'run', s)
     cls.address = cls.server_cfg.addresses[0]
Exemple #13
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind="127.0.0.1:0", concurrency=cls.cfg.concurrency)
     cls.server_cfg = yield from send("arbiter", "run", s)
     cls.client = EchoGreen(cls.server_cfg.addresses[0])
Exemple #14
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0',
                concurrency=cls.concurrency)
     outcome = pulsar.send('arbiter', 'run', s)
     yield outcome
     cls.server = outcome.result
Exemple #15
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(),
                bind='127.0.0.1:0',
                concurrency=get_actor().cfg.concurrency)
     cls.server = yield pulsar.send('arbiter', 'run', s)
     cls.client = Echo(force_sync=True)
Exemple #16
0
 async def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0',
                parse_console=False)
     cls.server_cfg = await send('arbiter', 'run', s)
     cls.client = EchoGreen(cls.server_cfg.addresses[0])
Exemple #17
0
 def setUpClass(cls):
     s = server(name=cls.__name__.lower(), bind='127.0.0.1:0')
     cls.server_cfg = yield send('arbiter', 'run', s)
     cls.client = EchoGreen(cls.server_cfg.addresses[0])
Exemple #18
0
 async def setUpClass(cls):
     s = server(name=cls.__name__.lower(),
                bind='127.0.0.1:0',
                parse_console=False)
     cls.server_cfg = await send('arbiter', 'run', s)
     cls.client = EchoGreen(cls.server_cfg.addresses[0])