Skip to content

Commit

Permalink
Fix missing plugin property
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrMuellerluedenscheid committed Jan 9, 2021
1 parent f4cbe60 commit 0c43f24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hbmqtt/plugins/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _load_plugins(self, namespace):
for ep in pkg_resources.iter_entry_points(group=namespace):
plugin = self._load_plugin(ep)
self._plugins.append(plugin)
self.logger.debug(" Plugin %s ready" % plugin.ep.name)
self.logger.debug(" Plugin %s ready" % ep.name)

def _load_plugin(self, ep: pkg_resources.EntryPoint):
try:
Expand Down
3 changes: 3 additions & 0 deletions tests/test_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def setUp(self):
asyncio.set_event_loop(self.loop)

def tearDown(self):
pending = asyncio.all_tasks(loop=self.loop)
self.loop.run_until_complete(asyncio.gather(*pending))

self.loop.close()

@patch('hbmqtt.broker.PluginManager')
Expand Down

0 comments on commit 0c43f24

Please sign in to comment.