Apache DataFusion SQL Query Engine
Minor: add test for panic propagation (#12134)
Andrew Lamb90420861dead
diff --git a/datafusion/common-runtime/src/common.rs b/datafusion/common-runtime/src/common.rsindex 698a846b48..30f7526bc0 100644--- a/datafusion/common-runtime/src/common.rs+++ b/datafusion/common-runtime/src/common.rs@@ -108,4 +108,14 @@ mod tests {Err(e) if e.is_cancelled()));}++ #[tokio::test]+ #[should_panic(expected = "foo")]+ async fn panic_resume() {+ // this should panic w/o an `unwrap`+ SpawnedTask::spawn(async { panic!("foo") })+ .join_unwind()+ .await+ .ok();+ }}