From ff3afe2869b0fe0fe67df522c8111a53b31e3a3f Mon Sep 17 00:00:00 2001 From: subcrip Date: Fri, 29 Mar 2024 20:09:32 +0800 Subject: [PATCH] fix(db): unit test --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1dbb595..af47973 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,11 +24,11 @@ async fn main() { println!("{}", json!(a)); } -// #[tokio::test] -// async fn test_table_level_operations() { -// use db::db_tests; -// let _b = db_tests::DBTestComponents::new(db::OAuthDatabase::connect("localhost", 5432, "postgres", "configjson", "myoauth").await.unwrap()).await.unwrap(); -// } +#[tokio::test] +async fn test_table_level_operations() { + use db::db_tests; + let _b = db_tests::DBTestComponents::new(db::OAuthDatabase::connect("localhost", 5432, "postgres", "configjson", "myoauth").await.unwrap()).await.unwrap(); +} #[tokio::test(flavor = "multi_thread")] async fn test_entry_level_operations() {