OXYGENHUB

HTTP integration test compiles without Debug on Repo 02f1b14af1e2

Author
Andy McCall @andymccall <[email protected]>
When
· 2026-09-26 18:47 UTC
Signature
✔ signed by Andy McCall
Hash
02f1b14af1e2f8ec4bccc04f16d284c5e29c7f51aae578d6559762bc44e4ed0a
Depends on
750251b21a96
Depended on by
75167672ebcd
In bookmarks
agents-in-readme bare-hashes carried-not-removed carry-identical doctor-trust identical-sides keyless-tags main merge-remote-bookmark only-help-103 paths-for-resolutions-and-amend push-notes show-stat subrepo-pin-state switch-says
In tags
v0.1.0 v0.10.0 v0.11.0 v0.2.0 v0.3.0 v0.3.1 v0.4.0 v0.4.1 v0.4.2 v0.4.3 v0.4.4 v0.4.5 v0.4.6 v0.5.0 v0.5.1 v0.6.0 v0.7.0 v0.8.0 v0.9.0
Edits
5 atoms, 0 tree operations, 1 file

Browse the tree at this change

modified crates/oxy-server/tests/http.rs +4 −4
…
54 unchanged lines
55 55
    assert_eq!(heads, want);
56 56
57 57
    // Unknown repositories and names the server refuses are surfaced as errors.
58 -
    let err = Repo::clone(&format!("{base}/nope"), &root.join("c")).unwrap_err().to_string();
58 +
    let err = Repo::clone(&format!("{base}/nope"), &root.join("c")).err().unwrap().to_string();
59 59
    assert!(err.contains("404"), "{err}");
60 60
    fs::create_dir_all(served.join(".hidden/.oxy")).unwrap();
61 -
    assert!(Repo::clone(&format!("{base}/.hidden"), &root.join("d")).unwrap_err().to_string().contains("404"));
61 +
    assert!(Repo::clone(&format!("{base}/.hidden"), &root.join("d")).err().unwrap().to_string().contains("404"));
62 62
}
63 63
64 64
#[test]
…
9 unchanged lines
74 74
    let mut a = Repo::clone(&url, &root.join("a")).unwrap();
75 75
    write(&root.join("a"), "f.txt", b"x\n");
76 76
    a.commit("x", &[]).unwrap();
77 -
    let err = a.push("origin", false).unwrap_err().to_string();
77 +
    let err = a.push("origin", false).err().unwrap().to_string();
78 78
    assert!(err.contains("401"), "{err}");
79 79
80 80
    a.config.set("remote.origin.token", "wrong").unwrap();
81 81
    a.save_config().unwrap();
82 -
    assert!(a.push("origin", false).unwrap_err().to_string().contains("401"));
82 +
    assert!(a.push("origin", false).err().unwrap().to_string().contains("401"));
83 83
84 84
    a.config.set("remote.origin.token", "s3cret").unwrap();
85 85
    a.save_config().unwrap();
…
4 unchanged lines