macros: allow unhandled_panic behavior for #[tokio::main] and #[tokio::test] (#6593)

This commit is contained in:
Hai-Hsin
2024-06-07 20:48:56 +09:00
committed by GitHub
parent 126ce89bb4
commit 833ee027d0
5 changed files with 227 additions and 32 deletions
@@ -41,6 +41,9 @@ async fn test_crate_not_path_int() {}
#[tokio::test(crate = "456")]
async fn test_crate_not_path_invalid() {}
#[tokio::test(flavor = "multi_thread", unhandled_panic = "shutdown_runtime")]
async fn test_multi_thread_with_unhandled_panic() {}
#[tokio::test]
#[test]
async fn test_has_second_test_attr() {}