Skip to content

Commit 3d3856f

Browse files
committed
Bump ui_test
1 parent 43f04e1 commit 3d3856f

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.1"
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![],
@@ -202,7 +202,6 @@ fn run_ui() {
202202

203203
compiletest::run_tests_generic(
204204
vec![config],
205-
std::thread::available_parallelism().unwrap(),
206205
args,
207206
move |path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
208207
compiletest::default_per_file_config,
@@ -229,7 +228,6 @@ fn run_internal_tests() {
229228

230229
compiletest::run_tests_generic(
231230
vec![config],
232-
std::thread::available_parallelism().unwrap(),
233231
args,
234232
move |path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
235233
compiletest::default_per_file_config,
@@ -262,7 +260,6 @@ fn run_ui_toml() {
262260

263261
ui_test::run_tests_generic(
264262
vec![config],
265-
std::thread::available_parallelism().unwrap(),
266263
args,
267264
|path, args, config| compiletest::default_file_filter(path, args, config) && test_filter(path),
268265
|config, path, _file_contents| {
@@ -320,7 +317,6 @@ fn run_ui_cargo() {
320317

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

0 commit comments

Comments
 (0)