own timeout

This commit is contained in:
callebtc
2022-10-31 11:01:41 +01:00
parent fec209eb34
commit 16815a283e
5 changed files with 78 additions and 30 deletions

View File

@@ -4,12 +4,12 @@ import requests
from cashu.tor.tor import TorProxy
@pytest.mark.skip
# @pytest.mark.skip
def test_tor_setup():
s = requests.Session()
tor = TorProxy(keep_alive=False)
tor.wait_until_startup()
tor = TorProxy(timeout=False)
tor.run_daemon()
socks_host, socks_port = "localhost", 9050
proxies = {