Skip to content

Commit c1d2eee

Browse files
committed
Fix test_handle_nonexistent_relative_paths_as_input test
Update test expectation to match new error message format. The error now occurs during file content reading rather than input parsing, which is the correct behavior for relative paths.
1 parent 2e31400 commit c1d2eee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lychee-bin/tests/cli.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,9 @@ mod cli {
16601660
.arg("./NOT-A-REAL-TEST-FIXTURE.md")
16611661
.assert()
16621662
.failure()
1663-
.stderr(contains("Invalid file path: ./NOT-A-REAL-TEST-FIXTURE.md"));
1663+
.stderr(contains(
1664+
"Cannot read input content from file `./NOT-A-REAL-TEST-FIXTURE.md`",
1665+
));
16641666

16651667
Ok(())
16661668
}

0 commit comments

Comments
 (0)