Skip to content

Commit 03b6c8f

Browse files
committed
update logger closed check
1 parent 72d9d96 commit 03b6c8f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_varys.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,10 @@ def tearDown(self):
298298
connection.close()
299299
time.sleep(0.5)
300300

301-
# check that all file handles were dropped
302-
logger = logging.getLogger("test_varys")
303-
self.assertEqual(len(logger.handlers), 0)
301+
# check that all file handles were dropped for relevant loggers
302+
for logger_name in ["test-exchange", "test-exchange-2", "test-exchange-3"]:
303+
logger = logging.getLogger(logger_name)
304+
self.assertEqual(len(logger.handlers), 0)
304305

305306
def test_not_permitted_declare_fail(self):
306307
self.v.send(TEXT, "test-exchange-2", queue_suffix="test_queue")

0 commit comments

Comments
 (0)