From ec04821462aa6dc22ae3527d9a7f0f6f6238c335 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Wed, 1 Jan 2020 00:20:29 -0500 Subject: [PATCH] hopefully fix github runner compat for tests --- src/routes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes.rs b/src/routes.rs index c240743..9a7e713 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -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]