Tcl Source Code

View Ticket
Login
Ticket UUID: d0d47f819642f39a2ecc6c95de97112c9d784c12
Title: Some httpProxy tests require internet access
Type: Bug Version: 9.0b2
Submitter: max Created on: 2024-06-14 08:48:44
Subsystem: 29. http Package Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2024-06-14 08:48:44
Resolution: None Closed By: nobody
    Closed on:
Description:

When running the test suite in an environment with no internet access, several of the httpProxy tests that try to access google fail:

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: Temporary failure in name resolution
    while executing
"http::geturl http://www.google.com/"

This could be fixed by either adding a constraint that skips them when there is no internet access, or by using a local dummy server instead of a public URL for the tests, whichever fits better with the purpose of the test.