hopefully fix github runner compat for tests

master
Edward Shen 2020-01-01 00:20:29 -05:00
parent 4e1db78ed9
commit ec04821462
Signed by: edward
GPG Key ID: F350507060ED6C90
1 changed files with 2 additions and 2 deletions

View File

@ -290,8 +290,8 @@ mod resolve_path {
// How many ".." needed to get to /
let nest_level = current_dir().unwrap().ancestors().count() - 1;
let mut rel_path = PathBuf::from("../".repeat(nest_level));
rel_path.push("./bin/env");
assert!(resolve_path(rel_path, "echo").is_ok());
rel_path.push("./bin/echo");
assert!(resolve_path(rel_path, "hello").is_ok());
}
#[test]