Skip to content

Commit

Permalink
Add disabled test
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Aug 21, 2014
1 parent 092dad4 commit ca5cdef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/rpc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ def cancelled_fut(self):
def exc2(self, arg):
raise ValueError("bad arg", arg)

@aiozmq.rpc.method
@asyncio.coroutine
def not_so_fast(self):
yield from asyncio.sleep(0.001, loop=self.loop)
return 'ok'


class Protocol(aiozmq.ZmqProtocol):

Expand Down Expand Up @@ -629,6 +635,19 @@ def communicate():

self.loop.run_until_complete(communicate())

def xtest_wait_closed(self):
client, server = self.make_rpc_pair()

@asyncio.coroutine
def go():
f1 = client.call.not_so_fast()
client.close()
client.wait_closed()
r = yield from f1
self.assertEqual('ok', r)

self.loop.run_until_complete(go())


class LoopRpcTests(unittest.TestCase, RpcTestsMixin):

Expand Down

0 comments on commit ca5cdef

Please sign in to comment.