Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Jan 20, 2021
1 parent 24d1cd0 commit 5c8a8e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ mod tests {
for (k, v) in map {
println!("k:{},v:{:?}", k, v);
assert!(!v.desc.is_empty());
if !k.eq(TAG) {
if !k.eq(TAG) || k.eq(BRANCH) {
assert!(!v.v.is_empty());
continue;
}
Expand All @@ -265,6 +265,8 @@ mod tests {
if let Some(github_ref) = env_map.get("GITHUB_REF") {
if github_ref.starts_with("refs/tags/") {
assert!(!v.v.is_empty());
} else if github_ref.starts_with("refs/heads/") {
assert!(!v.v.is_empty());
}
}
}
Expand Down

0 comments on commit 5c8a8e4

Please sign in to comment.