From 6a4bae8250923a5660b0aa1d2240d2208c8d7131 Mon Sep 17 00:00:00 2001 From: Zeeshan Lakhani Date: Tue, 23 Jan 2024 15:42:25 -0500 Subject: [PATCH] chore: .. --- Cargo.lock | 26 ++++++++++++++++++++++++++ homestar-runtime/Cargo.toml | 1 + homestar-runtime/tests/network/mdns.rs | 2 ++ 3 files changed, 29 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index f4c42898..87c7242a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2547,6 +2547,7 @@ dependencies = [ "serde_ipld_dagcbor", "serde_json", "serde_with", + "serial_test", "stream-cancel", "strip-ansi-escapes", "sysinfo", @@ -5903,6 +5904,31 @@ dependencies = [ "syn 2.0.48", ] +[[package]] +name = "serial_test" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953ad9342b3aaca7cb43c45c097dd008d4907070394bd0751a0aa8817e5a018d" +dependencies = [ + "dashmap", + "futures", + "lazy_static", + "log", + "parking_lot", + "serial_test_derive", +] + +[[package]] +name = "serial_test_derive" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b93fb4adc70021ac1b47f7d45e8cc4169baaa7ea58483bc5b721d19a26202212" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.48", +] + [[package]] name = "sha-1" version = "0.9.8" diff --git a/homestar-runtime/Cargo.toml b/homestar-runtime/Cargo.toml index ab7f156a..89b0741a 100644 --- a/homestar-runtime/Cargo.toml +++ b/homestar-runtime/Cargo.toml @@ -202,6 +202,7 @@ prometheus-parse = "0.2.4" rand = { workspace = true } retry = { version = "2.0", default-features = false } rm_rf = "0.6" +serial_test = "3.0" strip-ansi-escapes = "0.2.0" sysinfo = { version = "0.29", default-features = false } tokio-test = "0.4" diff --git a/homestar-runtime/tests/network/mdns.rs b/homestar-runtime/tests/network/mdns.rs index c42b22df..9459469b 100644 --- a/homestar-runtime/tests/network/mdns.rs +++ b/homestar-runtime/tests/network/mdns.rs @@ -17,6 +17,7 @@ use std::{ static BIN: Lazy = Lazy::new(|| assert_cmd::cargo::cargo_bin(BIN_NAME)); #[test] +#[serial_test::serial] fn test_libp2p_connect_after_mdns_discovery_integration() -> Result<()> { let proc_info1 = ProcInfo::new().unwrap(); let proc_info2 = ProcInfo::new().unwrap(); @@ -174,6 +175,7 @@ fn test_libp2p_connect_after_mdns_discovery_integration() -> Result<()> { } #[test] +#[serial_test::serial] fn test_libp2p_disconnect_mdns_discovery_integration() -> Result<()> { // Start two nodes each configured to listen at 0.0.0.0 with no known peers. // The nodes are configured with port 0 to allow the OS to select a port.