fix: avoid stack overflow in database tests

Signed-off-by: Infiland <ljubica.citydesign@gmail.com>
This commit is contained in:
Infiland
2026-04-25 01:38:23 +02:00
committed by IAmTomahawkx
parent d76a71141f
commit 34f05f4b2f

View File

@@ -95,7 +95,7 @@ macro_rules! database_test {
db.drop_database().await;
#[allow(clippy::redundant_closure_call)]
(|$db: $crate::Database| $test)(db.clone()).await;
std::boxed::Box::pin((|$db: $crate::Database| $test)(db.clone())).await;
db.drop_database().await
};