Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
  • Loading branch information
Rustin170506 committed Jul 2, 2023
1 parent 878eff1 commit 7cab8f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/bootstrap/config/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ fn profile_user_dist() {

#[test]
fn rust_optimize() {
let parse = |s| Config::parse_inner(&["check".to_owned()], |&_| toml::from_str(s).unwrap());

assert_eq!(parse("").rust_optimize.is_release(), true);
assert_eq!(parse("rust.optimize = false").rust_optimize.is_release(), false);
assert_eq!(parse("rust.optimize = true").rust_optimize.is_release(), true);
Expand All @@ -193,7 +191,5 @@ fn rust_optimize() {
#[test]
#[should_panic]
fn invalid_rust_optimize() {
Config::parse_inner(&["check".to_owned()], |&_| {
toml::from_str("rust.optimize = \"a\"").unwrap()
});
parse("rust.optimize = \"a\"");
}

0 comments on commit 7cab8f7

Please sign in to comment.