hopefully fix github runner compat for tests

This commit is contained in:
Edward Shen 2020-01-01 00:20:29 -05:00
parent 4e1db78ed9
commit ec04821462
Signed by: edward
GPG key ID: F350507060ED6C90

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]