Skip to content

Commit 9a18d1f

Browse files
Merge pull request #18 from OpenArchive/serial–veilid–init–tests
test: Add #[serial] attribute to remaining tests to prevent Veilid initialization conflicts
2 parents 2e67bc9 + 17bf107 commit 9a18d1f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ mod tests {
6666
}
6767

6868
#[actix_web::test]
69+
#[serial]
6970
async fn basic_test() -> Result<()> {
7071
let path = TmpDir::new("save-rust-test").await?;
7172

@@ -132,6 +133,7 @@ mod tests {
132133
Ok(())
133134
}
134135
#[actix_web::test]
136+
#[serial]
135137
async fn test_upload_list_delete() -> Result<()> {
136138
// Initialize the app
137139
let path = TmpDir::new("test_api_repo_file_operations").await?;
@@ -258,6 +260,7 @@ mod tests {
258260
}
259261

260262
#[actix_web::test]
263+
#[serial]
261264
async fn test_join_group() -> Result<()> {
262265
// Initialize the app
263266
let path = TmpDir::new("test_api_repo_file_operations").await?;
@@ -342,6 +345,7 @@ mod tests {
342345
}
343346

344347
#[actix_web::test]
348+
#[serial]
345349
async fn test_replicate_group() -> Result<()> {
346350
// Initialize the app
347351
let path = TmpDir::new("test_api_repo_file_operations").await?;
@@ -860,6 +864,7 @@ mod tests {
860864
}
861865

862866
#[actix_web::test]
867+
#[serial]
863868
async fn test_health_endpoint() -> Result<()> {
864869
// Initialize the app
865870
let path = TmpDir::new("test-health-endpoint").await?;

0 commit comments

Comments
 (0)