Skip to content

Commit

Permalink
use serial test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Mar 18, 2024
1 parent a11fe3d commit ffc1d2a
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 0 deletions.
113 changes: 113 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/svm-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ zip = "0.6"
rand = "0.8"
tempfile = "3.10"
tokio = { version = "1.36", features = ["rt-multi-thread", "macros"] }
serial_test = "3.0"

[features]
default = ["rustls", "cli", "solc"]
Expand Down
4 changes: 4 additions & 0 deletions crates/svm-rs/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ mod tests {
const LATEST: Version = Version::new(0, 8, 25);

#[tokio::test]
#[serial_test::serial]
async fn test_install() {
let versions = all_releases(platform())
.await
Expand All @@ -252,6 +253,7 @@ mod tests {
}

#[cfg(feature = "blocking")]
#[serial_test::serial]
#[test]
fn blocking_test_install() {
let versions = crate::releases::blocking_all_releases(platform::platform())
Expand All @@ -262,6 +264,7 @@ mod tests {
}

#[tokio::test]
#[serial_test::serial]
async fn test_version() {
let version = "0.8.10".parse().unwrap();
install(&version).await.unwrap();
Expand All @@ -273,6 +276,7 @@ mod tests {
}

#[cfg(feature = "blocking")]
#[serial_test::serial]
#[test]
fn blocking_test_version() {
let version = "0.8.10".parse().unwrap();
Expand Down

0 comments on commit ffc1d2a

Please sign in to comment.