Skip to content

Commit 7a52c4d

Browse files
committed
Timeout test teardown
1 parent d1be290 commit 7a52c4d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

orange-sdk/tests/test_utils.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,10 @@ where
289289
test(params.clone()).await;
290290

291291
// Always clean up
292-
params.stop().await;
292+
let timeout = Duration::from_secs(10);
293+
if tokio::time::timeout(timeout, params.stop()).await.is_err() {
294+
eprintln!("Warning: parms stop timed out after {timeout:?}");
295+
}
293296
}
294297

295298
async fn build_test_nodes() -> TestParams {

0 commit comments

Comments
 (0)