Skip to content

Commit

Permalink
array test is feature-gated
Browse files Browse the repository at this point in the history
  • Loading branch information
adwhit committed Jan 3, 2022
1 parent 3b3c141 commit aa89a24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ extern crate diesel;
mod common;
mod complex_join;
mod nullable;
mod pg_array;
mod rename;
mod simple;
mod value_style;

#[cfg(feature = "postgres")]
mod pg_array;
2 changes: 0 additions & 2 deletions tests/src/pg_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use diesel::prelude::*;

use crate::common::*;

#[cfg(feature = "postgres")]
pub fn create_table(conn: &PgConnection) {
use diesel::connection::SimpleConnection;
conn.batch_execute(
Expand All @@ -19,7 +18,6 @@ pub fn create_table(conn: &PgConnection) {
}

#[test]
#[cfg(feature = "postgres")]
fn enum_query() {
let connection = get_connection();
create_table(&connection);
Expand Down

0 comments on commit aa89a24

Please sign in to comment.