mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
test: remove all calls to print() from deltachat-rpc-client tests
They frequently fail in CI with `OSError: [Errno 9] Bad file descriptor`.
This commit is contained in:
@@ -7,8 +7,8 @@ If you want to debug iroh at rust-trace/log level set
|
|||||||
RUST_LOG=iroh_net=trace,iroh_gossip=trace
|
RUST_LOG=iroh_net=trace,iroh_gossip=trace
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@@ -25,9 +25,7 @@ def path_to_webxdc(request):
|
|||||||
|
|
||||||
|
|
||||||
def log(msg):
|
def log(msg):
|
||||||
print()
|
logging.info(msg)
|
||||||
print("*" * 80 + "\n" + msg + "\n", file=sys.stderr)
|
|
||||||
print()
|
|
||||||
|
|
||||||
|
|
||||||
def setup_realtime_webxdc(ac1, ac2, path_to_webxdc):
|
def setup_realtime_webxdc(ac1, ac2, path_to_webxdc):
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ def test_acfactory(acfactory) -> None:
|
|||||||
if event.progress == 1000: # Success
|
if event.progress == 1000: # Success
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
print(event)
|
logging.info(event)
|
||||||
print("Successful configuration")
|
logging.info("Successful configuration")
|
||||||
|
|
||||||
|
|
||||||
def test_configure_starttls(acfactory) -> None:
|
def test_configure_starttls(acfactory) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user