mirror of
https://github.com/actix/examples
synced 2025-04-22 08:34:52 +02:00
fix(tests): ignore tests if postgres isn't up
This commit is contained in:
parent
9a25c3b233
commit
94f20bb481
@ -16,6 +16,7 @@ pub struct NewItem {
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "postgres_tests"))]
|
||||
impl NewItem {
|
||||
/// Constructs new item details from name.
|
||||
#[cfg(test)] // only needed in tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user