Skip to content

Commit 4866989

Browse files
committed
Add clean-up sequence to test_replicate_group
1 parent 2fdb508 commit 4866989

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,20 @@ mod tests {
394394
file_content,
395395
"Downloaded back file content"
396396
);
397+
398+
// Clean up
399+
backend2.stop().await?;
400+
{
401+
let backend = get_backend().await?;
402+
backend.stop().await.expect("Backend failed to stop");
403+
}
404+
// Add delay to allow tasks to complete
405+
tokio::time::sleep(Duration::from_secs(2)).await;
406+
veilid_api2.shutdown().await;
407+
408+
Ok(())
409+
}
410+
397411
#[actix_web::test]
398412
async fn test_refresh_endpoint() -> Result<()> {
399413
// Initialize the app

0 commit comments

Comments
 (0)