mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
wait for a better event than DC_EVENT_INFO
This commit is contained in:
parent
b54f2b19cc
commit
1d11566ad4
1 changed files with 3 additions and 7 deletions
|
@ -1,5 +1,4 @@
|
|||
from __future__ import print_function
|
||||
import time
|
||||
from deltachat.capi import lib
|
||||
|
||||
|
||||
|
@ -68,9 +67,6 @@ class TestOnlineAccount:
|
|||
evt_name, data1, data2 = ev
|
||||
assert data1 == chat.id
|
||||
assert data2 == msgnum
|
||||
starttime = time.time()
|
||||
while time.time() < starttime + 20:
|
||||
evt_name, data1, data2 = ac2._evlogger.get_matching("DC_EVENT_INFO")
|
||||
if "1 mails read" in data2:
|
||||
break
|
||||
print("ignoring event", evt_name, data1, data2)
|
||||
ev = ac2._evlogger.get_matching("DC_EVENT_MSGS_CHANGED")
|
||||
assert ev[1] == chat.id
|
||||
assert ev[2] == msgnum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue