Skip to content

Commit ef5a833

Browse files
committed
Bump ui_test
1 parent 17d39fd commit ef5a833

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tempfile = { version = "3.2", optional = true }
2727
termize = "0.1"
2828

2929
[dev-dependencies]
30-
ui_test = "0.15"
30+
ui_test = "0.16"
3131
tester = "0.9"
3232
regex = "1.5"
3333
toml = "0.7.3"

tests/compile-test.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn canonicalize(path: impl AsRef<Path>) -> PathBuf {
117117
}
118118

119119
fn base_config(test_dir: &str) -> (compiletest::Config, Args) {
120-
let args = Args::test();
120+
let args = Args::test().unwrap();
121121
let mut config = compiletest::Config {
122122
mode: TestMode::Yolo { rustfix: true },
123123
stderr_filters: vec![],
@@ -201,7 +201,6 @@ fn run_ui() {
201201

202202
compiletest::run_tests_generic(
203203
vec![config],
204-
std::thread::available_parallelism().unwrap(),
205204
args,
206205
move |path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
207206
compiletest::default_per_file_config,
@@ -228,7 +227,6 @@ fn run_internal_tests() {
228227

229228
compiletest::run_tests_generic(
230229
vec![config],
231-
std::thread::available_parallelism().unwrap(),
232230
args,
233231
move |path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
234232
compiletest::default_per_file_config,
@@ -261,7 +259,6 @@ fn run_ui_toml() {
261259

262260
ui_test::run_tests_generic(
263261
vec![config],
264-
std::thread::available_parallelism().unwrap(),
265262
args,
266263
|path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
267264
|config, path, _file_contents| {
@@ -319,7 +316,6 @@ fn run_ui_cargo() {
319316

320317
ui_test::run_tests_generic(
321318
vec![config],
322-
std::thread::available_parallelism().unwrap(),
323319
args,
324320
|path, _args, _config| test_filter(path) && path.ends_with("Cargo.toml"),
325321
|config, path, _file_contents| {

0 commit comments

Comments
 (0)