From a9f6275a9e93961b720e3afa82c7b7e2eff9218d Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Sat, 11 Dec 2021 12:36:27 +0800 Subject: [PATCH] Run timestamp_tests for all databases --- tests/timestamp_tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/timestamp_tests.rs b/tests/timestamp_tests.rs index f0d6ca77..cad35270 100644 --- a/tests/timestamp_tests.rs +++ b/tests/timestamp_tests.rs @@ -4,7 +4,11 @@ pub use common::{features::*, setup::*, TestContext}; use sea_orm::{entity::prelude::*, DatabaseConnection, IntoActiveModel}; #[sea_orm_macros::test] -#[cfg(feature = "sqlx-postgres")] +#[cfg(any( + feature = "sqlx-mysql", + feature = "sqlx-sqlite", + feature = "sqlx-postgres" +))] async fn main() -> Result<(), DbErr> { let ctx = TestContext::new("bakery_chain_schema_timestamp_tests").await; create_tables(&ctx.db).await?;