tirocinio-canali-steffo-acrate/acrate_database/tests/test_connect.rs

15 lines
290 B
Rust

use acrate_database::connect::{connect_async, connect_sync};
#[test]
#[ignore]
fn test_connect_sync() -> diesel::ConnectionResult<()> {
connect_sync()?;
Ok(())
}
#[tokio::test]
#[ignore]
async fn test_connect_async() -> diesel::ConnectionResult<()> {
connect_async().await?;
Ok(())
}