This commit is contained in:
meejah 2016-11-27 15:14:25 -07:00
parent 7a5bf98f7f
commit c103777dc2

View File

@ -13,6 +13,7 @@ except ImportError:
from autobahn.asyncio.websocket import WebSocketServerFactory
from unittest import TestCase
import txaio
@pytest.mark.usefixtures("event_loop") # ensure we have pytest_asyncio installed
@ -43,8 +44,10 @@ class Test(TestCase):
return f
values = []
def on_connect(req):
f = txaio.create_future()
def cb(x):
f = foo(42)
f.add_callbacks(f, lambda v: values.append(v), None)