Skip to content

Commit

Permalink
test: make path relative.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Feb 27, 2024
1 parent 384b4a2 commit 69ae5be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/fuse-parser/tests/cases/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ impl<'a> Context<'a> {

#[test]
fn pass() {
let root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let root = PathBuf::from(file!()).parent().unwrap().to_path_buf();
println!("{}, w", env!("CARGO_MANIFEST_DIR"));

let ctx = Context {
root,
test_dir: PathBuf::new().join("tests").join("cases").join("pass"),
test_dir: PathBuf::from("pass"),
source_name: "case.fuse",
settings: insta::Settings::clone_current(),
};
Expand Down

0 comments on commit 69ae5be

Please sign in to comment.