···11+From f8c83b48774d152f9bc590db83c032235ef502a9 Mon Sep 17 00:00:00 2001
22+From: Jan Klass <kissaki@posteo.de>
33+Date: Sat, 24 Jun 2023 17:57:59 +0200
44+Subject: [PATCH] test: Fix missing tokio test macro dependency
55+66+The tests make use of the `#[tokio::test]` macro, but the tokio dependency default feature does not include them. Running cargo test fails.
77+88+By including the `macros` feature on the tokio dependency, cargo test will work.
99+1010+---
1111+1212+cargo test fails with
1313+1414+```
1515+error[E0433]: failed to resolve: could not find `test` in `tokio`
1616+ --> src\scheduled_tasks.rs:295:12
1717+ |
1818+295 | #[tokio::test]
1919+ | ^^^^ could not find `test` in `tokio`
2020+```
2121+---
2222+ Cargo.toml | 2 +-
2323+ 1 file changed, 1 insertion(+), 1 deletion(-)
2424+2525+diff --git a/Cargo.toml b/Cargo.toml
2626+index 430deb082c..d4c5ab8ef0 100644
2727+--- a/Cargo.toml
2828++++ b/Cargo.toml
2929+@@ -89,7 +89,7 @@ anyhow = "1.0.71"
3030+ diesel_ltree = "0.3.0"
3131+ typed-builder = "0.10.0"
3232+ serial_test = "0.9.0"
3333+-tokio = "1.28.2"
3434++tokio = { version = "1.28.2", features = ["macros"] }
3535+ sha2 = "0.10.6"
3636+ regex = "1.8.4"
3737+ once_cell = "1.18.0"