Skip to content

Commit

Permalink
Fix downgrade_upgrade_package test
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Aug 5, 2022
1 parent 088ecc3 commit ed3314e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cargo-dylint/tests/package_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use std::{fs::read_to_string, path::Path};
use tempfile::tempdir;
use test_log::test;

const RUST_VERSION: &str = "1.63.0";

#[test]
fn new_package() {
let tempdir = tempdir().unwrap();
Expand Down Expand Up @@ -61,7 +63,7 @@ fn downgrade_upgrade_package() {
/* let mut rust_version = rust_version(tempdir.path()).unwrap();
assert!(rust_version.minor != 0);
rust_version.minor -= 1; */
let rust_version = Version::parse("1.62.0").unwrap();
let rust_version = Version::parse(RUST_VERSION).unwrap();

let upgrade = || {
let mut command = std::process::Command::cargo_bin("cargo-dylint").unwrap();
Expand Down

0 comments on commit ed3314e

Please sign in to comment.