mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
only run gated time tests if both time features are not present
This commit is contained in:
parent
4881e7dcee
commit
fc6e6a65f7
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue