Add test for notifee disconnected

This commit is contained in:
mhchia
2019-09-17 21:54:20 +08:00
parent 675c61ce3b
commit b8b5ac5e06
5 changed files with 87 additions and 333 deletions

View File

@ -95,7 +95,7 @@ class Pubsub:
# Register a notifee
self.peer_queue = asyncio.Queue()
self.host.get_network().notify(PubsubNotifee(self.peer_queue))
self.host.get_network().register_notifee(PubsubNotifee(self.peer_queue))
# Register stream handlers for each pubsub router protocol to handle
# the pubsub streams opened on those protocols