test_transit: fix test to tolerate proper virtualized reactor
This commit is contained in:
parent
4a2f3baf28
commit
0c43499850
|
@ -1312,8 +1312,8 @@ class Transit(unittest.TestCase):
|
||||||
|
|
||||||
@inlineCallbacks
|
@inlineCallbacks
|
||||||
def test_success_direct(self):
|
def test_success_direct(self):
|
||||||
clock = task.Clock()
|
reactor = mock.Mock()
|
||||||
s = transit.TransitSender("", reactor=clock)
|
s = transit.TransitSender("", reactor=reactor)
|
||||||
s.set_transit_key(b"key")
|
s.set_transit_key(b"key")
|
||||||
hints = yield s.get_connection_hints() # start the listener
|
hints = yield s.get_connection_hints() # start the listener
|
||||||
del hints
|
del hints
|
||||||
|
|
Loading…
Reference in New Issue
Block a user