From 7ec1367973135aa4c88de4d7503e1a4c1b1beb69 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Wed, 6 Dec 2023 20:18:22 -0500 Subject: [PATCH] test: re-ignore git auth tests for gitoxide --- tests/testsuite/git_auth.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/testsuite/git_auth.rs b/tests/testsuite/git_auth.rs index f829de5da03..b94a1baeffa 100644 --- a/tests/testsuite/git_auth.rs +++ b/tests/testsuite/git_auth.rs @@ -105,6 +105,11 @@ fn setup_failed_auth_test() -> (SocketAddr, JoinHandle<()>, Arc) { // Tests that HTTP auth is offered from `credential.helper`. #[cargo_test] fn http_auth_offered() { + // TODO: remove this once possible. + // See https://github.com/rust-lang/cargo/issues/11821 + if cargo_uses_gitoxide() { + return; + } let (addr, t, connections) = setup_failed_auth_test(); let p = project() .file( @@ -368,6 +373,11 @@ Caused by: #[cargo_test] fn instead_of_url_printed() { + // TODO: remove this once possible. + // See https://github.com/rust-lang/cargo/issues/11821 + if cargo_uses_gitoxide() { + return; + } let (addr, t, _connections) = setup_failed_auth_test(); let config = paths::home().join(".gitconfig"); let mut config = git2::Config::open(&config).unwrap();