use assert2::{assert, let_assert}; use temp_postgres::TempPostgres; #[tokio::test] async fn insert_and_find() { let_assert!(Ok(postgres) = TempPostgres::new().await); let_assert!(Ok(client) = postgres.client().await); assert!(let Ok(0) = client.execute("CREATE TABLE pets (name TEXT PRIMARY KEY, species TEXT)", &[]).await); // Not needed, but shows better errors. assert!(let Ok(()) = postgres.kill_and_clean().await); }