Skip to content

Commit

Permalink
Bump ui_test
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Aug 11, 2023
1 parent 43f04e1 commit 665a619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tempfile = { version = "3.2", optional = true }
termize = "0.1"

[dev-dependencies]
ui_test = "0.15"
ui_test = "0.17.0"
tester = "0.9"
regex = "1.5"
toml = "0.7.3"
Expand Down
6 changes: 1 addition & 5 deletions tests/compile-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fn canonicalize(path: impl AsRef<Path>) -> PathBuf {
}

fn base_config(test_dir: &str) -> (compiletest::Config, Args) {
let args = Args::test();
let args = Args::test().unwrap();
let mut config = compiletest::Config {
mode: TestMode::Yolo { rustfix: true },
stderr_filters: vec![],
Expand Down Expand Up @@ -202,7 +202,6 @@ fn run_ui() {

compiletest::run_tests_generic(
vec![config],
std::thread::available_parallelism().unwrap(),
args,
move |path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
compiletest::default_per_file_config,
Expand All @@ -229,7 +228,6 @@ fn run_internal_tests() {

compiletest::run_tests_generic(
vec![config],
std::thread::available_parallelism().unwrap(),
args,
move |path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
compiletest::default_per_file_config,
Expand Down Expand Up @@ -262,7 +260,6 @@ fn run_ui_toml() {

ui_test::run_tests_generic(
vec![config],
std::thread::available_parallelism().unwrap(),
args,
|path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
|config, path, _file_contents| {
Expand Down Expand Up @@ -320,7 +317,6 @@ fn run_ui_cargo() {

ui_test::run_tests_generic(
vec![config],
std::thread::available_parallelism().unwrap(),
args,
|path, _args, _config| test_filter(path) && path.ends_with("Cargo.toml"),
|config, path, _file_contents| {
Expand Down

0 comments on commit 665a619

Please sign in to comment.