Skip to content

Commit

Permalink
Fix mount_point_isnt_dir test
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Passaro <[email protected]>
  • Loading branch information
passaro committed Jun 30, 2023
1 parent 1647851 commit a6c2b49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mountpoint-s3/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ fn mount_point_doesnt_exist() -> Result<(), Box<dyn std::error::Error>> {

#[test]
fn mount_point_isnt_dir() -> Result<(), Box<dyn std::error::Error>> {
let file = assert_fs::NamedTempFile::new("test/file.txt")?;
let file = assert_fs::NamedTempFile::new("file.txt")?;
fs::write(file.path(), b"hello")?;
let mut cmd = Command::cargo_bin("mount-s3")?;

cmd.arg("test-bucket").arg(file.path());
Expand Down

0 comments on commit a6c2b49

Please sign in to comment.