Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 committed Jun 9, 2023
1 parent 05dd13a commit b809328
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cargo-shuttle/tests/integration/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async fn non_interactive_basic_init() {
"none",
temp_dir_path.to_str().unwrap(),
]);
let shuttle = Shuttle::new().unwrap().run(args).await.unwrap();
Shuttle::new().unwrap().run(args).await.unwrap();

let cargo_toml = read_to_string(temp_dir_path.join("Cargo.toml")).unwrap();
assert!(cargo_toml.contains("name = \"my-project\""));
Expand All @@ -40,7 +40,6 @@ async fn non_interactive_basic_init() {
// attempts to enter the original (temp) working directory again.
// If both are dropped at the same time, the test can sometimes crash.
// Added sleep here to prevent.
drop(shuttle);
tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;
drop(temp_dir);
}
Expand All @@ -65,15 +64,14 @@ async fn non_interactive_rocket_init() {
"rocket",
temp_dir_path.to_str().unwrap(),
]);
let shuttle = Shuttle::new().unwrap().run(args).await.unwrap();
Shuttle::new().unwrap().run(args).await.unwrap();

assert_valid_rocket_project(temp_dir_path.as_path(), "my-project");

// CI DEBUG: Dropping the underlying cargo generate `ScopedWorkingDirectory`
// attempts to enter the original (temp) working directory again.
// If both are dropped at the same time, the test can sometimes crash.
// Added sleep here to prevent.
drop(shuttle);
tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;
drop(temp_dir);
}
Expand Down Expand Up @@ -244,7 +242,7 @@ async fn non_interactive_git_init() {
"tower/hello-world",
temp_dir_path.to_str().unwrap(),
]);
let shuttle = Shuttle::new().unwrap().run(args).await.unwrap();
Shuttle::new().unwrap().run(args).await.unwrap();

let cargo_toml = read_to_string(temp_dir_path.join("Cargo.toml")).unwrap();
assert!(cargo_toml.contains("name = \"my-project\""));
Expand All @@ -254,7 +252,6 @@ async fn non_interactive_git_init() {
// attempts to enter the original (temp) working directory again.
// If both are dropped at the same time, the test can sometimes crash.
// Added sleep here to prevent.
drop(shuttle);
tokio::time::sleep(tokio::time::Duration::from_millis(500)).await;
drop(temp_dir);
}

0 comments on commit b809328

Please sign in to comment.