Only build HTTP tests when a HTTP integration has been enabled

This commit is contained in:
Magnus Hallin 2017-06-15 10:34:59 +02:00
parent b23374c868
commit 4d8c3611d2

View file

@ -91,7 +91,7 @@ impl<'a> ser::Serialize for GraphQLResponse<'a> {
}
}
#[cfg(test)]
#[cfg(all(test, any(feature="iron-handlers", feature="rocket-handlers")))]
pub mod tests {
use serde_json::Value as Json;
use serde_json;