1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: fix test suite to work when a proxy environment is configured
If http_proxy is set in the environment, test_non_local_interfaces fails
because it tries to connect via the proxy when it should be connecting to
a local server instead. Simply remove this setting from the environment to
let the test pass.
Author: Steve Langasek <steve.langasek@ubuntu.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921486
Forwarded: not-needed
Last-Update: 2023-06-13
--- a/adsf/test/test_server.rb
+++ b/adsf/test/test_server.rb
@@ -157,6 +157,7 @@
end
def test_non_local_interfaces
+ ENV.delete('http_proxy')
addresses = Socket.getifaddrs.map(&:addr).select(&:ipv4?).map(&:ip_address)
non_local_addresses = addresses - ['127.0.0.1']
|