From fe1ddf9342747b03b93fbc9c60399802abd3e425 Mon Sep 17 00:00:00 2001 From: EETagent Date: Thu, 17 Nov 2022 12:25:21 +0100 Subject: [PATCH] feat: sqlite memory connection test --- core/src/util.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/src/util.rs b/core/src/util.rs index b932dac..ab47922 100644 --- a/core/src/util.rs +++ b/core/src/util.rs @@ -25,4 +25,14 @@ pub async fn get_memory_sqlite_connection() -> sea_orm::DbConn { .await .unwrap(); db +} + +#[cfg(test)] +mod tests { + use super::get_memory_sqlite_connection; + + #[tokio::test] + async fn test_get_memory_sqlite_connection() { + get_memory_sqlite_connection().await; + } } \ No newline at end of file