Skip to content

Commit 54479b7

Browse files
committed
Quiet noisy background-thread logs in the test base
Silence the subscription worker reporting expected connection drops on teardown so test output stays readable.
1 parent 8bd8578 commit 54479b7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ravendb/tests/test_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import atexit
22
import datetime
3+
import logging
34
import threading
45
import time
56
import unittest
@@ -402,6 +403,9 @@ def setConvention(self, conventions):
402403
self.conventions = conventions
403404

404405
def setUp(self):
406+
# Silence noisy background-thread logs (e.g. the subscription worker reporting
407+
# expected connection drops on teardown) so test output stays readable.
408+
logging.disable(logging.ERROR)
405409
RavenTestDriver.__init__(self)
406410
self._locator = TestBase.TestServiceLocator()
407411
self._secured_locator = TestBase.TestSecuredServiceLocator()

0 commit comments

Comments
 (0)