Skip to content

Commit 5cf020e

Browse files
committed
tests: fix path in tests
1 parent 30f3270 commit 5cf020e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/config/models/test.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ async fn err_bad_trunk_toml_watch_path() {
4848

4949
assert_eq!(
5050
err.to_string(),
51-
r#"error taking the canonical path to the watch path: "fake-dir""#
51+
format!(
52+
r#"error taking the canonical path to the watch path: "{}/tests/data/fake-dir""#,
53+
cwd.display()
54+
)
5255
);
5356
}
5457

@@ -71,7 +74,10 @@ async fn err_bad_trunk_toml_watch_ignore() {
7174
.expect_err("expected config to err");
7275
assert_eq!(
7376
err.to_string(),
74-
r#"error taking the canonical path to the watch ignore path: "fake.html""#
77+
format!(
78+
r#"error taking the canonical path to the watch ignore path: "{}/tests/data/fake.html""#,
79+
cwd.display()
80+
)
7581
);
7682
}
7783

0 commit comments

Comments
 (0)