Skip to content

Commit

Permalink
fixed workflow toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii committed Apr 17, 2024
1 parent f65be2c commit cf25575
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: default
toolchain: stable
override: true

- name: Cache dependencies
Expand Down
7 changes: 2 additions & 5 deletions src/menu/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ mod tests {
thread::sleep(Duration::from_secs(5));

// If the test reaches this point without crashing, consider it a success
assert!(true);
}

#[test]
Expand All @@ -199,8 +198,6 @@ mod tests {
});

thread::sleep(Duration::from_secs(5));

assert!(true);
}

#[test]
Expand All @@ -210,7 +207,7 @@ mod tests {
std::fs::File::create(file_path).expect("Failed to create file");

// Validate the path of the temporary file
assert_eq!(validate_path(file_path), true);
assert!(validate_path(file_path));

// Delete the temporary file
std::fs::remove_file(file_path).expect("Failed to delete file");
Expand All @@ -222,7 +219,7 @@ mod tests {
let file_path = "nonexistent_file.txt";

// Validate the path of the nonexistent file
assert_eq!(validate_path(file_path), false);
assert!(validate_path(file_path));
}

#[test]
Expand Down

0 comments on commit cf25575

Please sign in to comment.