@@ -48,15 +48,14 @@ def test_publish(self):
4848 """Flushing should publish messages to MQTT topic"""
4949 self .handler .flush_level = logging .ERROR
5050
51- async def do_test (handler , logger ):
51+ async def do_test (logger ):
5252 logger .info ("Test message 1" )
5353 await asyncio .sleep (0.1 )
5454 logger .error ("Test message 2" )
5555 await asyncio .sleep (0.1 )
56- handler .stop ()
5756
5857 async def main (handler , logger ):
59- await asyncio .gather (handler .run (), do_test (handler , logger ))
58+ await asyncio .gather (handler .run (), do_test (logger ))
6059
6160 asyncio .run (main (self .handler , self .logger ))
6261
@@ -68,7 +67,7 @@ def test_flush_multiple(self):
6867 """Flushing multiple times should publish separate messages"""
6968 self .handler .capacity = 2
7069
71- async def do_test (handler , logger ):
70+ async def do_test (logger ):
7271 logger .info ("Test message 1" )
7372 await asyncio .sleep (0.1 )
7473 logger .info ("Test message 2" )
@@ -77,10 +76,9 @@ async def do_test(handler, logger):
7776 await asyncio .sleep (0.1 )
7877 logger .info ("Test message 4" )
7978 await asyncio .sleep (0.1 )
80- handler .stop ()
8179
8280 async def main (handler , logger ):
83- await asyncio .gather (handler .run (), do_test (handler , logger ))
81+ await asyncio .gather (handler .run (), do_test (logger ))
8482
8583 asyncio .run (main (self .handler , self .logger ))
8684
0 commit comments