hs-test: fix tests using wget 06/37906/1
authorFilip Tehlar <ftehlar@cisco.com>
Thu, 12 Jan 2023 15:21:55 +0000 (16:21 +0100)
committerFilip Tehlar <ftehlar@cisco.com>
Thu, 12 Jan 2023 15:21:55 +0000 (16:21 +0100)
This fixes an issue on systems with http proxy set.

Type: test

Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Change-Id: Ic84fcd0b8a7698ef101b369d46be858cbe85fc73

extras/hs-test/utils.go

index f3b7ffa..1338498 100644 (file)
@@ -183,7 +183,7 @@ func startWget(finished chan error, server_ip, port, query, netNs string) {
                finished <- errors.New("wget error")
        }()
 
-       cmd := NewCommand([]string{"wget", "--tries=5", "-q", "-O", "/dev/null", server_ip + ":" + port + "/" + query},
+       cmd := NewCommand([]string{"wget", "--no-proxy", "--tries=5", "-q", "-O", "/dev/null", server_ip + ":" + port + "/" + query},
                netNs)
        o, err := cmd.CombinedOutput()
        if err != nil {