diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-05-26 19:59:39 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-05-26 23:52:48 -0400 |
commit | 53f2d63e53dccbfae435e01305327f2fcf84a0d4 (patch) | |
tree | 84b6b9db8faf7a1c0324304988455ace5fcf1cc8 /src/db.rs | |
parent | c5ea65393d9b8000d68cf8c2f887f22bdae81222 (diff) | |
download | clinte-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.rs | 2 |
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(); |