mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 18:29:19 +02:00
bring the test into a bit of a better shape
This commit is contained in:
parent
7a54a2577a
commit
fe05c27081
1 changed files with 5 additions and 3 deletions
|
@ -38,7 +38,7 @@ def test_basic_events(dc_context, dc_threads, register_dc_callback, tmpdir, user
|
||||||
# XXX how to give this string back to delta-core properly?
|
# XXX how to give this string back to delta-core properly?
|
||||||
# for now we just return nothing
|
# for now we just return nothing
|
||||||
else:
|
else:
|
||||||
q.put((evt, data1, data2))
|
q.put((evt_name, data1, data2))
|
||||||
return 0
|
return 0
|
||||||
register_dc_callback(dc_context, cb)
|
register_dc_callback(dc_context, cb)
|
||||||
|
|
||||||
|
@ -49,8 +49,10 @@ def test_basic_events(dc_context, dc_threads, register_dc_callback, tmpdir, user
|
||||||
capi.lib.dc_configure(dc_context)
|
capi.lib.dc_configure(dc_context)
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
evt_name, data1, data2 = q.get(timeout=1.0)
|
evt_name, data1, data2 = q.get(timeout=2.0)
|
||||||
pass
|
if evt_name == "DC_EVENT_ERROR":
|
||||||
|
assert 0
|
||||||
|
# XXX look for successful termination once we make things pass
|
||||||
|
|
||||||
|
|
||||||
def read_url(url):
|
def read_url(url):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue