Skip to content

Commit bc77c84

Browse files
committed
test_updater: make sure that conpool is stopped before setting updater
even for the first unitest, it might come after another unitests from another file which had already init the conpool.
1 parent a814e9d commit bc77c84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_updater.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def setUp(self):
7979
self.lock = Lock()
8080

8181
def _setup_updater(self, *args, **kwargs):
82+
stop_con_pool()
8283
bot = MockBot(*args, **kwargs)
8384
self.updater = Updater(workers=2, bot=bot)
8485

0 commit comments

Comments
 (0)