chore: turn clippy on for test code (#4817)

This commit is contained in:
Jack Amadeo
2025-09-26 00:06:07 -04:00
committed by GitHub
parent f5877a9996
commit 757ceb6109
38 changed files with 660 additions and 849 deletions
@@ -134,7 +134,7 @@ fn test_symlink_handling() {
#[cfg(unix)]
{
use std::os::unix::fs::symlink;
let _ = symlink(&dir_path.join("target.rs"), dir_path.join("link.rs"));
let _ = symlink(dir_path.join("target.rs"), dir_path.join("link.rs"));
let _ = symlink(&target_dir, dir_path.join("link_dir"));
}
@@ -2970,7 +2970,7 @@ mod tests {
let temp_path = temp_dir.path();
// Set the current directory before creating the server
std::env::set_current_dir(&temp_path).unwrap();
std::env::set_current_dir(temp_path).unwrap();
// Create some test files and directories
fs::create_dir(temp_path.join("subdir1")).unwrap();
@@ -3029,7 +3029,7 @@ mod tests {
let temp_path = temp_dir.path();
// Set the current directory before creating the server
std::env::set_current_dir(&temp_path).unwrap();
std::env::set_current_dir(temp_path).unwrap();
// Create more than 50 files to test the limit
for i in 0..60 {
@@ -3085,7 +3085,7 @@ mod tests {
let temp_path = temp_dir.path();
// Set the current directory before creating the server
std::env::set_current_dir(&temp_path).unwrap();
std::env::set_current_dir(temp_path).unwrap();
let server = create_test_server();
@@ -3666,7 +3666,7 @@ Additional instructions here.
// Cancel the command
let cancel_params = CancelledNotificationParam {
request_id: request_id,
request_id,
reason: Some("test cancellation".to_string()),
};
@@ -3748,7 +3748,7 @@ Additional instructions here.
// Cancel the command
let cancel_params = CancelledNotificationParam {
request_id: request_id,
request_id,
reason: Some("test cancellation".to_string()),
};