mirror of
https://github.com/actix/examples
synced 2025-04-22 00:26:51 +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,
|
pub name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(feature = "postgres_tests"))]
|
||||||
impl NewItem {
|
impl NewItem {
|
||||||
/// Constructs new item details from name.
|
/// Constructs new item details from name.
|
||||||
#[cfg(test)] // only needed in tests
|
#[cfg(test)] // only needed in tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user