Skip to content

Commit

Permalink
Fix hard-coded error messages
Browse files Browse the repository at this point in the history
Signed-off-by: James Bornholt <[email protected]>
  • Loading branch information
jamesbornholt committed Jun 30, 2023
1 parent e5f7b85 commit 192edaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mountpoint-s3/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn mount_point_doesnt_exist() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("mount-s3")?;

cmd.arg("test-bucket").arg("test/dir");
let error_message = "Mount point test/dir does not exist or it is not a directory";
let error_message = "mount point test/dir does not exist";
cmd.assert().failure().stderr(predicate::str::contains(error_message));

Ok(())
Expand All @@ -25,7 +25,7 @@ fn mount_point_isnt_dir() -> Result<(), Box<dyn std::error::Error>> {

cmd.arg("test-bucket").arg(file.path());
let error_message = format!(
"Mount point {} does not exist or it is not a directory",
"mount point {} does not exist",
file.path().display()
);
cmd.assert().failure().stderr(predicate::str::contains(error_message));
Expand Down

0 comments on commit 192edaa

Please sign in to comment.