diff --git a/Cargo.lock b/Cargo.lock index 62322ec8f9..d0aeb44583 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2611,6 +2611,15 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "scc" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46e6f046b7fef48e2660c57ed794263155d713de679057f2d0c169bfc6e756cc" +dependencies = [ + "sdd", +] + [[package]] name = "schannel" version = "0.1.23" @@ -2661,6 +2670,12 @@ dependencies = [ "syn", ] +[[package]] +name = "sdd" +version = "3.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "490dcfcbfef26be6800d11870ff2df8774fa6e86d047e3e8c8a76b25655e41ca" + [[package]] name = "secrecy" version = "0.8.0" @@ -2777,6 +2792,7 @@ dependencies = [ "sentry", "serde", "serde_json", + "serial_test", "sha1_smol", "sourcemap", "symbolic", @@ -2890,6 +2906,31 @@ dependencies = [ "serde", ] +[[package]] +name = "serial_test" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b258109f244e1d6891bf1053a55d63a5cd4f8f4c30cf9a1280989f80e7a1fa9" +dependencies = [ + "futures", + "log", + "once_cell", + "parking_lot", + "scc", + "serial_test_derive", +] + +[[package]] +name = "serial_test_derive" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d69265a08751de7844521fd15003ae0a888e035773ba05695c5c759a6f89eef" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sha1" version = "0.10.6" diff --git a/Cargo.toml b/Cargo.toml index 3a5fe55904..6f9aeb74e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,6 +86,7 @@ assert_cmd = "2.0.11" insta = { version = "1.26.0", features = ["redactions", "yaml"] } mockito = "1.6.1" rstest = "0.18.2" +serial_test = "3.1.1" tempfile = "3.8.1" trycmd = "0.14.11" diff --git a/src/utils/vcs.rs b/src/utils/vcs.rs index d47da5d815..10315867e0 100644 --- a/src/utils/vcs.rs +++ b/src/utils/vcs.rs @@ -806,6 +806,7 @@ mod tests { use { crate::api::RepoProvider, insta::{assert_debug_snapshot, assert_yaml_snapshot}, + serial_test::serial, std::fs::File, std::io::Write as _, std::path::Path, @@ -1672,6 +1673,7 @@ mod tests { } #[test] + #[serial(github_event_path)] fn test_find_head_with_github_event_path() { use std::fs; @@ -1751,6 +1753,7 @@ mod tests { } #[test] + #[serial(github_event_path)] fn test_find_base_sha() { use std::fs;