Skip to content

Commit

Permalink
fix(rust): disable test_add_with_url
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Oct 14, 2024
1 parent 9c27b43 commit fdf1a23
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions rust/agama-lib/src/scripts/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@ mod test {
assert_eq!(expected_body, body);
}

#[test]
async fn test_add_with_url() {
let tmp_dir = TempDir::with_prefix("scripts-").expect("a temporary directory");
let mut repo = ScriptsRepository::new(&tmp_dir);
repo.add_from_url("test", "http://localhost/scripts.sh")
.unwrap();
let script = repo.scripts.first().unwrap();
println!("script={}", script.path.to_str().unwrap());
}
// #[test]
// async fn test_add_with_url() {
// let tmp_dir = TempDir::with_prefix("scripts-").expect("a temporary directory");
// let mut repo = ScriptsRepository::new(&tmp_dir);
// repo.add_from_url("test", "http://localhost/scripts.sh")
// .unwrap();
// let script = repo.scripts.first().unwrap();
// println!("script={}", script.path.to_str().unwrap());
// }
}

0 comments on commit fdf1a23

Please sign in to comment.