From 8800a40979b222736543eb261a16a0a11ab47c97 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Sun, 21 Jun 2020 04:34:29 -0700 Subject: [PATCH] test: tokio or actix should import tokio in pool_smoke_test --- tests/postgres/postgres.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/postgres/postgres.rs b/tests/postgres/postgres.rs index 902e0684..2aeea43d 100644 --- a/tests/postgres/postgres.rs +++ b/tests/postgres/postgres.rs @@ -354,7 +354,7 @@ async fn it_can_work_with_nested_transactions() -> anyhow::Result<()> { #[ignore] #[sqlx_macros::test] async fn pool_smoke_test() -> anyhow::Result<()> { - #[cfg(feature = "runtime-tokio")] + #[cfg(any(feature = "runtime-tokio", feature = "runtime-actix"))] use tokio::{task::spawn, time::delay_for as sleep, time::timeout}; #[cfg(feature = "runtime-async-std")]