summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index b80be21..884b812 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1,4 +1,5 @@
extern crate space;
+extern crate diesel;
#[cfg(test)]
mod tests {
@@ -6,6 +7,9 @@ mod tests {
use std::thread::sleep;
use std::time::Duration;
+ use diesel::prelude::*;
+ use diesel::pg::PgConnection;
+
use space::constants;
use space::item::{Item, ItemType};
use space::mass::Mass;
@@ -517,4 +521,9 @@ mod tests {
}
}
}
+
+ #[test]
+ fn test_postgres_connection() {
+ PgConnection::establish("postgres://space:space@localhost/space_db").expect("Cannot connect");
+ }
}