diff --git a/mountpoint-s3/tests/cli.rs b/mountpoint-s3/tests/cli.rs index 804ec4696..f1747c707 100644 --- a/mountpoint-s3/tests/cli.rs +++ b/mountpoint-s3/tests/cli.rs @@ -20,7 +20,8 @@ fn mount_point_doesnt_exist() -> Result<(), Box> { #[test] fn mount_point_isnt_dir() -> Result<(), Box> { - 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());