From 4ad546b7d942e9ba4e5812bcbbe2013cbf3f266a Mon Sep 17 00:00:00 2001 From: "panxuchen.pxc" Date: Sun, 4 Feb 2024 16:31:44 +0800 Subject: [PATCH] fix singleton in monitor test --- tests/monitor_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/monitor_test.py b/tests/monitor_test.py index 26ac418c8..3fc54470a 100644 --- a/tests/monitor_test.py +++ b/tests/monitor_test.py @@ -15,6 +15,7 @@ class MonitorFactoryTest(unittest.TestCase): "Test class for MonitorFactory" def setUp(self) -> None: + MonitorFactory._instance = None # pylint: disable=W0212 self.db_path = f"test-{uuid.uuid4()}.db" _ = MonitorFactory.get_monitor(db_path=self.db_path)