From 1462512883c1d6a1a8269dd567ab65dbe67be300 Mon Sep 17 00:00:00 2001 From: baoyachi Date: Tue, 25 Aug 2020 03:25:35 +0800 Subject: [PATCH] fix unit test --- src/git.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/git.rs b/src/git.rs index 2837e64..c810230 100644 --- a/src/git.rs +++ b/src/git.rs @@ -125,11 +125,13 @@ pub fn new_git( #[cfg(test)] mod tests { use super::*; + use crate::Shadow; use std::path::Path; #[test] fn test_git() { - let map = new_git(Path::new("./"), CIType::Github); + let map = Shadow::get_env(); + let map = new_git(Path::new("./"), CIType::Github, &map); println!("map:{:?}", map); } }