Hotfix
This commit is contained in:
parent
52c36d1bc4
commit
c9d1285b57
10
Cargo.toml
10
Cargo.toml
@ -114,13 +114,3 @@ runtime-actix-rustls = ["sqlx/runtime-actix-rustls", "runtime-actix"]
|
||||
runtime-tokio = []
|
||||
runtime-tokio-native-tls = ["sqlx/runtime-tokio-native-tls", "runtime-tokio"]
|
||||
runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls", "runtime-tokio"]
|
||||
|
||||
[[test]]
|
||||
name = "sqlite-basic"
|
||||
path = "tests/basic.rs"
|
||||
required-features = ["sqlx-sqlite"]
|
||||
|
||||
[[test]]
|
||||
name = "postgres"
|
||||
path = "tests/pg_tests.rs"
|
||||
required-features = ["sqlx-postgres"]
|
||||
|
@ -3,9 +3,9 @@ use sea_orm::{entity::*, error::*, sea_query, tests_cfg::*, DbBackend, DbConn, S
|
||||
mod setup;
|
||||
|
||||
// cargo test --test basic -- --nocapture
|
||||
#[cfg_attr(feature = "runtime-async-std", async_std::main)]
|
||||
#[cfg_attr(feature = "runtime-actix", actix_rt::main)]
|
||||
#[cfg_attr(feature = "runtime-tokio", tokio::main)]
|
||||
#[cfg_attr(feature = "runtime-async-std", async_std::test)]
|
||||
#[cfg_attr(feature = "runtime-actix", actix_rt::test)]
|
||||
#[cfg_attr(feature = "runtime-tokio", tokio::test)]
|
||||
#[cfg(feature = "sqlx-sqlite")]
|
||||
async fn main() {
|
||||
let db: DbConn = setup::setup().await;
|
||||
|
@ -9,9 +9,9 @@ pub use common::bakery_chain::*;
|
||||
use sea_query::{ColumnDef, TableCreateStatement};
|
||||
|
||||
// cargo test --test pg_tests -- --nocapture
|
||||
#[cfg_attr(feature = "runtime-async-std", async_std::main)]
|
||||
#[cfg_attr(feature = "runtime-actix", actix_rt::main)]
|
||||
#[cfg_attr(feature = "runtime-tokio", tokio::main)]
|
||||
#[cfg_attr(feature = "runtime-async-std", async_std::test)]
|
||||
#[cfg_attr(feature = "runtime-actix", actix_rt::test)]
|
||||
#[cfg_attr(feature = "runtime-tokio", tokio::test)]
|
||||
#[cfg(feature = "sqlx-postgres")]
|
||||
async fn main() {
|
||||
let base_url = "postgres://root:root@localhost";
|
||||
|
Loading…
x
Reference in New Issue
Block a user