only run gated time tests if both time features are not present

This commit is contained in:
Ryan Leckey 2020-03-21 03:20:38 -07:00
parent 4881e7dcee
commit fc6e6a65f7

View file

@ -6,7 +6,7 @@ fn ui_tests() {
t.compile_fail("tests/ui/postgres/*.rs");
// UI tests for column types that require gated features
if cfg!(not(feature = "chrono")) {
if cfg!(not(feature = "chrono")) && cfg!(not(feature = "time")) {
t.compile_fail("tests/ui/postgres/gated/chrono.rs");
}
@ -23,7 +23,7 @@ fn ui_tests() {
t.compile_fail("tests/ui/mysql/*.rs");
// UI tests for column types that require gated features
if cfg!(not(feature = "chrono")) {
if cfg!(not(feature = "chrono")) && cfg!(not(feature = "time")) {
t.compile_fail("tests/ui/mysql/gated/chrono.rs");
}
}