Add Python test

This commit is contained in:
Hocuri
2020-06-12 13:17:18 +02:00
committed by holger krekel
parent 4eee4a08e7
commit 351e5dc6f3
2 changed files with 6 additions and 1 deletions

View File

@@ -187,7 +187,9 @@ class DirectImap:
""" (blocking) wait for next idle message from server. """
assert self._idling
self.account.log("imap-direct: calling idle_check")
res = self.conn.idle_check()
res = self.conn.idle_check(timeout=30)
if len(res) == 0:
raise TimeoutError
if terminate:
self.idle_done()
return res