diff --git a/Cargo.lock b/Cargo.lock index 177f035c810c..03d00cde34ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8293,6 +8293,15 @@ dependencies = [ "yap", ] +[[package]] +name = "scc" +version = "2.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8d25269dd3a12467afe2e510f69fb0b46b698e5afb296b59f2145259deaf8e8" +dependencies = [ + "sdd", +] + [[package]] name = "schannel" version = "0.1.26" @@ -8337,6 +8346,12 @@ dependencies = [ "untrusted", ] +[[package]] +name = "sdd" +version = "3.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49c1eeaf4b6a87c7479688c6d52b9f1153cedd3c489300564f932b065c6eab95" + [[package]] name = "seahash" version = "4.1.0" @@ -8730,6 +8745,31 @@ dependencies = [ "unsafe-libyaml", ] +[[package]] +name = "serial_test" +version = "3.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b4b487fe2acf240a021cf57c6b2b4903b1e78ca0ecd862a71b71d2a51fed77d" +dependencies = [ + "futures 0.3.31", + "log", + "once_cell", + "parking_lot", + "scc", + "serial_test_derive", +] + +[[package]] +name = "serial_test_derive" +version = "3.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82fe9db325bcef1fbcde82e078a5cc4efdf787e96b3b9cf45b50b529f2083d67" +dependencies = [ + "proc-macro2 1.0.89", + "quote 1.0.37", + "syn 2.0.85", +] + [[package]] name = "sha-1" version = "0.9.8" @@ -12151,6 +12191,7 @@ dependencies = [ "secp256k1", "serde", "serde_json", + "serial_test", "sha2 0.10.8", "sha3 0.10.8", "subxt-metadata", diff --git a/core/node/da_clients/Cargo.toml b/core/node/da_clients/Cargo.toml index d468221303ef..7283277d148a 100644 --- a/core/node/da_clients/Cargo.toml +++ b/core/node/da_clients/Cargo.toml @@ -65,3 +65,4 @@ ethabi = "16.0.0" rust-kzg-bn254 = {git = "https://github.com/lambdaclass/rust-kzg-bn254", branch = "bump-ark"} ark-bn254 = "0.5.0-alpha.0" num-bigint = "0.4.6" +serial_test = "3.1.1" diff --git a/core/node/da_clients/src/eigen/client.rs b/core/node/da_clients/src/eigen/client.rs index 25d1432a6d9a..549c7526b621 100644 --- a/core/node/da_clients/src/eigen/client.rs +++ b/core/node/da_clients/src/eigen/client.rs @@ -110,8 +110,10 @@ mod tests { use super::*; use crate::eigen::blob_info::BlobInfo; + use serial_test::serial; #[tokio::test] + #[serial] async fn test_non_auth_dispersal() { let config = EigenConfig::Disperser(DisperserConfig { disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(), @@ -150,6 +152,7 @@ mod tests { } #[tokio::test] + #[serial] async fn test_auth_dispersal() { let config = EigenConfig::Disperser(DisperserConfig { disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(), @@ -220,6 +223,7 @@ mod tests { assert_eq!(retrieved_data.unwrap(), data); } #[tokio::test] + #[serial] async fn test_wait_for_finalization() { let config = EigenConfig::Disperser(DisperserConfig { disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(), @@ -284,9 +288,9 @@ mod tests { } #[tokio::test] + #[serial] async fn test_eth_confirmation_depth() { let config = EigenConfig::Disperser(DisperserConfig { - custom_quorum_numbers: None, disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(), eth_confirmation_depth: 5, eigenda_eth_rpc: "https://ethereum-holesky-rpc.publicnode.com".to_string(), @@ -323,9 +327,9 @@ mod tests { } #[tokio::test] + #[serial] async fn test_auth_dispersal_eth_confirmation_depth() { let config = EigenConfig::Disperser(DisperserConfig { - custom_quorum_numbers: None, disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(), eth_confirmation_depth: 5, eigenda_eth_rpc: "https://ethereum-holesky-rpc.publicnode.com".to_string(),