From 6326348014fee4f156dca70e9a1c19ecfae17fc3 Mon Sep 17 00:00:00 2001 From: baoyachi Date: Mon, 27 Feb 2023 22:27:42 +0800 Subject: [PATCH] fix unit test --- src/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git.rs b/src/git.rs index c3bdcf2..e86d031 100644 --- a/src/git.rs +++ b/src/git.rs @@ -475,7 +475,7 @@ mod tests { for (k, v) in map { println!("k:{},v:{:?}", k, v); assert!(!v.desc.is_empty()); - if !k.eq(TAG) && !k.eq(BRANCH) && !k.eq(GIT_STATUS_FILE) { + if !k.eq(TAG) && !k.eq(LAST_TAG) && !k.eq(BRANCH) && !k.eq(GIT_STATUS_FILE) { assert!(!v.v.is_empty()); continue; }