summary refs log tree commit diff stats
path: root/src/db.rs
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-05-26 19:59:39 -0400
committerBen Morrison <ben@gbmor.dev>2020-05-26 23:52:48 -0400
commit53f2d63e53dccbfae435e01305327f2fcf84a0d4 (patch)
tree84b6b9db8faf7a1c0324304988455ace5fcf1cc8 /src/db.rs
parentc5ea65393d9b8000d68cf8c2f887f22bdae81222 (diff)
downloadclinte-53f2d63e53dccbfae435e01305327f2fcf84a0d4.tar.gz
using in-memory db for tests, passing path to logging::init() instead of assuming
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.rs b/src/db.rs
index 8ae9f2c..86875e2 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -59,7 +59,7 @@ mod tests {
 
     #[test]
     fn test_new() {
-        let conn = Conn::init("/tmp/clinte-test.db");
+        let conn = Conn::init(":memory:");
         let mut stmt = conn.prepare("SELECT * FROM POSTS").unwrap();
 
         stmt.query_map(rusqlite::NO_PARAMS, |_| Ok(())).unwrap();