1
0
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:
Alex Ted 2025-02-28 12:26:21 +03:00
parent 9a25c3b233
commit 94f20bb481

View File

@ -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