Skip to content

Commit e35498d

Browse files
committed
Put ui test behind migrate flag
1 parent 650f911 commit e35498d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/ui-tests.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ fn ui_tests() {
4747

4848
#[test]
4949
fn ui_migrate_tests() {
50-
let t = trybuild::TestCases::new();
51-
t.compile_fail("tests/ui/migrate/invalid_key.rs");
52-
t.compile_fail("tests/ui/migrate/missing_parameter.rs");
50+
if cfg!(feature = "migrate") {
51+
let t = trybuild::TestCases::new();
52+
t.compile_fail("tests/ui/migrate/invalid_key.rs");
53+
t.compile_fail("tests/ui/migrate/missing_parameter.rs");
54+
}
5355
}

0 commit comments

Comments
 (0)