mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
Add socket-timeout=4 in ``warcprox_`` test fixture. Create test URL `/slow-url` which returns after 6 sec. Trying to access the target URL raises a ``socket.timeout`` and returns HTTP status 502. The new ``--socket-timeout`` option does not hurt any other test using the ``warcprox_`` fixture because they are too fast anyway.