Skip to content
Snippets Groups Projects
Open Some unit tests fail when not connected to internet
  • View options
  • Some unit tests fail when not connected to internet

    • View options
  • Open created by dvermd

    When you launch the unit tests (cargo test --all) without being connected to the internet, some tests fail. Here are the errors :

    test url::tests::parse_url_with_scheme_and_host_and_port ... FAILED
    test url::tests::parse_url_with_host_only ... FAILED
    test url::tests::parse_url_with_scheme_and_host ... FAILED
    test url::tests::parse_url_with_host_and_port ... FAILED
    
    failures:
    
    ---- url::tests::parse_url_with_scheme_and_host_and_port stdout ----
    thread 'url::tests::parse_url_with_scheme_and_host_and_port' panicked at 'Fail to get to_listenable_addr addr: Custom { kind: Other, error: "failed to lookup address information: Name or service not known" }', src/libcore/result.rs:1188:5
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
    
    ---- url::tests::parse_url_with_host_only stdout ----
    thread 'url::tests::parse_url_with_host_only' panicked at 'Fail to get to_listenable_addr addr: Custom { kind: Other, error: "failed to lookup address information: Name or service not known" }', src/libcore/result.rs:1188:5
    
    ---- url::tests::parse_url_with_scheme_and_host stdout ----
    thread 'url::tests::parse_url_with_scheme_and_host' panicked at 'Fail to get to_listenable_addr addr: Custom { kind: Other, error: "failed to lookup address information: Name or service not known" }', src/libcore/result.rs:1188:5
    
    ---- url::tests::parse_url_with_host_and_port stdout ----
    thread 'url::tests::parse_url_with_host_and_port' panicked at 'Fail to get to_listenable_addr addr: Custom { kind: Other, error: "failed to lookup address information: Name or service not known" }', src/libcore/result.rs:1188:5
    
    
    failures:
        url::tests::parse_url_with_host_and_port
        url::tests::parse_url_with_host_only
        url::tests::parse_url_with_scheme_and_host
        url::tests::parse_url_with_scheme_and_host_and_port
    
    test result: FAILED. 19 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out
    
    error: test failed, to rerun pass '-p durs-network-documents --lib'
    • Merge request
    • Branch

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first